Skip to main content
Solved

Move file from onr folder to another

  • October 23, 2024
  • 1 reply
  • 44 views

poonam21
Contributor
Forum|alt.badge.img+7

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.

View original
Did this help you find an answer to your question?

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+54
  • 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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings