Say : SaveAttachment folder [bot will create all the time] and move it to other folder say Backup at the end of process completion.
In Backup folder i want to move SaveAttachment folder with the time stamp so that already existing scenario can be avoided. Please guide me how can i do this.
Thanks Karthik, but this didnât work because this will be not one time activity . i need to move the folder again and again to this destination and name will be same⌠So it wonât allow me to do that since it will throw error with already exist name.
Adding to it, this sample moves only files but not complete folder .
Can you please help me move complete folder to other location .
i want to move complete folder into some other folder. and even i want to append time stamp to the source folder so that i can avoid folder already exist scenario.
Please help me on this , entire day i tried but no successâŚ
To copy the whole folder use Invoke Powershell activity in Command Text give âMove-Itemâ and add two parameters Path (the folder you want to copy) and Destination (the folder where you want to copy the folder).
First I would suggest using the Move Directory activity created by vv which can be found in the Community Feed. You canât use the Move File on Folders. There are probably other ways to move the folder too like Powershell which was suggested.
If you use the activity âMove Directoryâ, first make sure you have the Community Feed. Follow below screenshots:
Right Click on Available and add in the source for Community Feed:
Then, go search for Move Directory activity:
Now, you can add this activity in and change the From and To Properties:
For Dest/Destination, use the same folder as your Src/Source but add the timestamp, like @Vivek_Arunagiri showed: