#1
|
|||
|
|||
Macro naming a folder?
I am looking to create a folder with either an incremented number each time the copy step runs, or create a folder with a name of the time stamp (for example - 2005.29.08.13.03)(year.day.month.time), but doesn't have to be in that order. I am not savy with the VBScript, so if someone may have detailed steps on how to do this, I would greatly appreciate them.
Ultimately I would like to create a copy step, that will copy all the contents of a folder, and place them in a dated folder as "backup". DEST FOLDER: c:\inetpub\wwwroot\myapp\%timedatedfolder% Any ideas???? Last edited by kblaine; 08-29-2005 at 11:00 AM. |
#2
|
|||
|
|||
Try the following
%DOSCMD% mkdir "c:\inetpub\wwwroot\myapp\[vbld_FormatDate()]" This creates a folder named like this "20050829". Look in the help file under System Script Date/Time Functions for other possible formats |
#3
|
|||
|
|||
HOLY CRAP. You made it so easy. Thank you! This will help our builds 100%.
Thanks. |
#4
|
|||
|
|||
Actually, the mkdir step is unnecessary since the Copy Files action will create the destination folder if it doesn't exist.
|
#5
|
|||
|
|||
Yep. I added the \[vbld_FormatDate()] to the end of my destinatoin folder, in the copy step. It works perfectly! Thank you all again!!
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|