Skip to main content
Solved

Move file from onr folder to another

  • October 23, 2024
  • 1 reply
  • 63 views

poonam21
Contributor
Forum|alt.badge.img+8

Hey Folks.

I’m trying to move files from one folder to another after execution but it’s not working properly.

I have tried using filecopy writer by selecting move option, but copy is working properly but its not move.

I have also created attributes - filecopy_source_dataset, filecopy_dest_dataset, filecopy_dest_filename. But I’m not getting what value should i give into these attributes.

Kindly help.

 

Thanks in advance

Best answer by nielsgerrits

For moving a file, you only need filecopy_source_dataset. This is the original filepath to the file you want to move, for example:

C:\TMP\New folder (158)\from\file.txt

Then you put that in the FeatureWriter type File Copy. Dataset must be target folder, for example:

C:\TMP\New folder (158)\to

Subfolder name must have a value but can be ignored. Use the following parameters:

This setup will move the file “file.txt” from the path “C:\TMP\New folder (158)\from” to the path “C:\TMP\New folder (158)\to”.

Sample attached.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+62
  • Best Answer
  • October 23, 2024

For moving a file, you only need filecopy_source_dataset. This is the original filepath to the file you want to move, for example:

C:\TMP\New folder (158)\from\file.txt

Then you put that in the FeatureWriter type File Copy. Dataset must be target folder, for example:

C:\TMP\New folder (158)\to

Subfolder name must have a value but can be ignored. Use the following parameters:

This setup will move the file “file.txt” from the path “C:\TMP\New folder (158)\from” to the path “C:\TMP\New folder (158)\to”.

Sample attached.