Kinook Software Forums

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

Thread Tools Rate Thread Display Modes
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
Old 12-04-2004, 09:37 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,908
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

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 01:24 PM.

Copyright 1999-2022 Kinook Software, Inc.