I am creating a new folder (name lets say E1) for each employee (E1, E2, E3 …) inside a folder (name : currentFile) on my computer. I have 100 employees. Then I download videos of each employee on my computer in “downloads” folder. What I want to do is, moving downloaded videos in “downloads” to currentFile in E1, then create folder E2 then move downloaded videos in “downloads” to currentFile in E2. How can I do this ? I tried “move file”, but I could not successfully write path.
Thanks in advance.
You might be already looping on employee data…
Now inside loop first use create folder with Path.Combine("baseFolderPath",currentItem) assuming currentitem is the name E1,E2 etc
Next use move file after the download with the same Path.Combine("baseFolderPath",currentItem) and latestfile you want to move as input
Cheers
So, here folder name is the path where I want to create folders
string.Format(“Path.Combine(”“C:\Users\A078730\Documents\UiPath\THU_deneme_son\mou”“,currentItem)”) + TCK
TCK is the variable where I get the text to name folders, which dynamic meaning changes for each employee
example folder name “TCKN 1212121212”
in move file
From: “string.Format(”{0}\mou", System.IO.Directory.GetCurrentDirectory())"
so here mou is the name of the file where my videos are downloaded.
To:
string.Format(“Path.Combine(”“C:\Users\A078730\Documents\UiPath\THU_deneme_son\mou”“,currentItem)”)
here mou folder includes the folder I create, but each time the name of the folder changes, it is dynamic.
I tried this but it does not work.
Can you help please
As per the currentitem change the folder would change
Can you run and show the logs give the log message with value as your path.combine
Cheers
