Two things:
1) In Macro Scheduler, there is a function called RenameFile, which is for, as it says, renaming a file. My question is, is there an equivalent function for renaming a folder? If yes, what's the function called?
2) When I copied a folder using CopyFolder, is there a way to rename the folder that is just copied into the target directory?
Renaming a Folder
Moderators: Dorian (MJT support), JRL
Re: Renaming a Folder
1) RenameFile> also renames folders.
2) CopyFolder> will rename as you copy
Copyfolder>Location\Name,NewLocation\NewName
Or if you prefer, copy the folder with CopyFolder> then at some later time in the script rename the folder using RenameFile>
2) CopyFolder> will rename as you copy
Copyfolder>Location\Name,NewLocation\NewName
Or if you prefer, copy the folder with CopyFolder> then at some later time in the script rename the folder using RenameFile>
-
- Pro Scripter
- Posts: 82
- Joined: Mon Mar 24, 2014 12:15 pm
Re: Renaming a Folder
Hey Winstein,
1) RenameFile also works on folders:
2) CopyFile can rename files by changing the output to a new name:
Hope this helps
Dominic
1) RenameFile also works on folders:
Code: Select all
RenameFile>C:\Users\%USER_NAME%\Desktop\test2,C:\Users\%USER_NAME%\Desktop\test3
Code: Select all
CopyFile>C:\Users\%USER_NAME%\Desktop\test2,C:\Users\%USER_NAME%\Desktop\test3
Dominic