|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
|
|