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)
-   -   Copy file with rename (https://www.kinook.com/Forum/showthread.php?t=679)

MarkSchramm 12-03-2004 05:52 PM

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.

kinook 12-04-2004 08:37 AM

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"


All times are GMT -5. The time now is 01:24 AM.


Copyright © 1999-2023 Kinook Software, Inc.