1 - Create a folder with current date and time
2 - Copy a file (from a specifik folder)
3 - Change file name by adding current date and time to the file name
4 - Add that file to the folder created upper at the point (1)
how can i do that … can someone help
I want to avoid that If I run process same day twise then It wont give me issue on copy file with changing date and add to specifik folder.
Check if a folder with the current date and time exists using Path Exists Activity.
Check if Folder Path Exists then goto 3 steps else use Create Folder Activity and pass the folder path to create the Folder with the current date and time
Use the Copy File activity and pass the source path and the destination path, and also check the check box overwrite.
Source Path - Original Path
Destination Path - Path.Combine(FolderPath,Path.GetFileNameWithoutExtension(Source Path)+CurrentDateTime+“.”+Path.GetExtension(Source Path))
I am not able to add datetime with date and time like that “dd-MM-yyyy hh:mm:ss” either to folder or to file.
I know how to create folder and copy file and change file name but i need to add “dd-MM-yyyy hh:mm:ss” into both file and folder… and that i need assist in.