Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-04-2006, 05:45 AM
sri sri is online now
Registered User
 
Join Date: 03-22-2006
Location: India
Posts: 8
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
Reply With Quote
  #3  
Old 07-28-2011, 10:21 AM
pinkerp1 pinkerp1 is offline
Registered User
 
Join Date: 07-28-2011
Posts: 5
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.
Reply With Quote
  #4  
Old 07-28-2011, 11:13 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
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.
Attached Files
File Type: bld CopyAndRename.bld (1.3 KB, 798 views)
Reply With Quote
  #5  
Old 07-28-2011, 12:15 PM
pinkerp1 pinkerp1 is offline
Registered User
 
Join Date: 07-28-2011
Posts: 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.
Reply With Quote
  #6  
Old 07-28-2011, 12:25 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,013
http://www.kinook.com/VisBuildPro/Ma...ptdatetime.htm
Reply With Quote
  #7  
Old 07-28-2011, 01:02 PM
pinkerp1 pinkerp1 is offline
Registered User
 
Join Date: 07-28-2011
Posts: 5
Changed time to HHMM ( uppercase ) works like a champ !!
Reply With Quote
Reply


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 09:24 AM.


Copyright © 1999-2023 Kinook Software, Inc.