Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-03-2004, 06:52 PM
MarkSchramm MarkSchramm is offline
Registered User
 
Join Date: 11-29-2004
Posts: 2
Question Copy file with rename

How would I copy a file from location 1 to location 2 and during the copy, rename the file to something else.

The copy action seems to only copy the exact same name.
Reply With Quote
  #2  
Old 12-04-2004, 09:37 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Use a Run Program action with a command of:

%DOSCMD% copy "c:\path\to\source\file.ext" "c:\dest\path\newname.ext"

or a Run Script action with code of:

vbld_FSO.CopyFile "c:\path\to\source\file.ext", "c:\dest\path\newname.ext"
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 02:18 AM.


Copyright © 1999-2023 Kinook Software, Inc.