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 and Rename a file (https://www.kinook.com/Forum/showthread.php?t=1664)

sri 04-04-2006 05:45 AM

copy and Rename a file
 
Hi,
I am creating an installation file thru nightly build.After the file is created successfuly want to copy it to some location and rename it file.The installation file name changes often. For example the file name is like
acbinstall_4913_9.exe
It has to be renamed as abcinst51.exe
where 4913 are the build number with a sub version 9.
The numbers can be incremented at any time so whenever change is made in the build or subversion has to be copied and renamed automatically.

How can i achive the above?

Thanks
Sri

kinook 04-04-2006 12:22 PM

http://www.visualbuild.com/Manual/copyfilesaction.htm
http://www.visualbuild.com/Manual/renamefilesaction.htm
http://www.visualbuild.com/Manual/scriptexpressions.htm

pinkerp1 07-28-2011 10:21 AM

rename new file with timestamp?
 
I'd like to be able to copy the resulting build file to one location renaming the file each time automatically by adding the timestamp to the name.

Example. FOO.MSI original files name
copy FOO.MSI to Stage folder/FOO.MSI01012011

next build Copy FOO.MSI to Stage folder/FOO.MSI02022011


or Keep multiple FOO.MSI file in the same folder (Stage folder) but each FOO.MSI file contains a different timestamp.

Are either of these scenarios possible ? please do not refer to the manual only without providing an example also. As I would not ask if the manual was clear about this issue.

kinook 07-28-2011 11:13 AM

1 Attachment(s)
Windows doesn't allow multiple files with the same name in the same folder, but you could tack on the date to make unique. See the attached sample.

pinkerp1 07-28-2011 12:15 PM

Very helpful thanks trying to add Minutes "mmddyyyyhmm" but does not seem to work as I would expect. Reason is there may be more that one build per day.

Nevertheless there is hope thanks for the example.

kinook 07-28-2011 12:25 PM

http://www.kinook.com/VisBuildPro/Ma...ptdatetime.htm

pinkerp1 07-28-2011 01:02 PM

Changed time to HHMM ( uppercase ) works like a champ !!


All times are GMT -5. The time now is 02:51 PM.


Copyright © 1999-2023 Kinook Software, Inc.