Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Rename file(s) (https://www.kinook.com/Forum/showthread.php?t=213)

tim.bertalot 10-13-2003 05:26 PM

Rename file(s)
 
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.


All times are GMT -5. The time now is 06:42 PM.


Copyright © 1999-2023 Kinook Software, Inc.