PDA

View Full Version : Rename file(s)


tim.bertalot
10-13-2003, 05:26 PM
What is the easiest way to use visual build's built in facilities to rename one or more files? I assume it somehow involves the process files action.

kinook
10-14-2003, 09:55 AM
To rename an individual file, use a Run Program step with a command of

%DOSCMD% ren "drive+path+oldfilename" "newfilename"

For multiple files, it depends on the type of name change being done. You might be able to combine the Process Files action and Run Program 'ren' step if the change is consistent among all files, or you may need an explicit rename step for each file. See the Recurse.bld sample for some examples of the Process Files action.