Saved Bookmarks
| 1. |
Solve : FOR question (related to folder creation)? |
|
Answer» Whenever I run this I can see it copying the log files but it then creates a file named new folder instead of a folder. How to I modify this to CREATE the destination folder for me? Or do I have to create the destination folder before I run this? can you tell me why the second variable %%G has to be in quotes in order for this to work? The quotes ACCOUNT for any embedded special characters and/or spaces in the path/file names. If all the files are bring copied to the same destination, use MD to create a directory prior to the FOR. Your logic doesn't show it, but if you needed multiple destination DIRECTORIES, you'd need to create directories within the FOR loop Good LUCK. Ok, thanks for explaining that. Didn't even cross my mind to use md to create the dir. |
|