Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-13-2003, 05:26 PM
tim.bertalot tim.bertalot is online now
Registered User
 
Join Date: 01-01-1970
Posts: 8
Question 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.
Reply With Quote
  #2  
Old 10-14-2003, 09:55 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:42 AM.


Copyright © 1999-2023 Kinook Software, Inc.