Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-29-2005, 10:02 AM
kblaine kblaine is online now
Registered User
 
Join Date: 04-30-2004
Posts: 12
Question 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.
Reply With Quote
  #2  
Old 08-29-2005, 03:25 PM
GrahamS GrahamS is online now
Registered User
 
Join Date: 12-26-2003
Posts: 16
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
Reply With Quote
  #3  
Old 08-29-2005, 03:34 PM
kblaine kblaine is online now
Registered User
 
Join Date: 04-30-2004
Posts: 12
Talking

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

Thanks.
Reply With Quote
  #4  
Old 08-29-2005, 03:37 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Actually, the mkdir step is unnecessary since the Copy Files action will create the destination folder if it doesn't exist.
Reply With Quote
  #5  
Old 08-30-2005, 07:13 AM
kblaine kblaine is online now
Registered User
 
Join Date: 04-30-2004
Posts: 12
Thumbs up

Yep. I added the \[vbld_FormatDate()] to the end of my destinatoin folder, in the copy step. It works perfectly! Thank you all again!!
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 07:15 PM.


Copyright © 1999-2023 Kinook Software, Inc.