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)
-   -   Help naming a new folder! (https://www.kinook.com/Forum/showthread.php?t=1229)

kblaine 08-29-2005 10:02 AM

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????

GrahamS 08-29-2005 03:25 PM

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

kblaine 08-29-2005 03:34 PM

HOLY CRAP. You made it so easy. Thank you! This will help our builds 100%.

Thanks.

kinook 08-29-2005 03:37 PM

Actually, the mkdir step is unnecessary since the Copy Files action will create the destination folder if it doesn't exist.

kblaine 08-30-2005 07:13 AM

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


Copyright © 1999-2023 Kinook Software, Inc.