Hello Andy,
You are doing no wrong. The code you sent us is perfectly fine. What we understand is that you want to choose the folder i.e you want the task to prompt you for the folder name under which you want to create folder named 'Originals' in 'Every Folder in a Folder'. Right? What you can do is use 'Prompt' command that will prompt you to enter the folder name and you can assign that value to a variable, say $variable1$ and use this in loop command as follows
To create folder named 'Originals' in 'Every Folder in a Folder' you can do as follows:
1 Start Loop " Each Folder in C:\dir1\$variable1$"
2 Create Folder "$CurrentDirectory$\$FolderName$\ORIGINALS"
3 Delay: (200 ms)
4 End Loop
Doing above steps, it will create folder named 'Originals' in every folder under folder that you provide.
And, $foldername$ and $currentdirectory$ variables work only inside the loop command. You cannot use these variables as a part of loop statement itself.
Hope that helps.
|