![]() |
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???? |
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 |
HOLY CRAP. You made it so easy. Thank you! This will help our builds 100%.
Thanks. |
Actually, the mkdir step is unnecessary since the Copy Files action will create the destination folder if it doesn't exist.
|
Yep. I added the \[vbld_FormatDate()] to the end of my destinatoin folder, in the copy step. It works perfectly! Thank you all again!!
|
All times are GMT -5. The time now is 02:46 AM. |
Copyright © 1999-2023 Kinook Software, Inc.