|
#1
|
||||
|
||||
|
Folder.Create using variable are part of name
I'm trying to create a folder using a variable for part of the name. I want to create a folder in the source folder named DBU_(the current date) and have been unsuccessfull. This is what i have so far:
Code:
date = System.GetDate(DATE_FMT_US);
Folder.Create("%SourceFolder%:\\DBU_"..date.."");
|
|
#2
|
|||
|
|||
|
DATE_FMT_US has backslashes "/" in it which are unsupported in a folder name
You either need to replace them with a dash "-", or use DATE_FMT_ISO |
|
#3
|
||||
|
||||
|
i changed the DATE_FMT_US to DATE_FTM_ISO but it is still not creating the folder.
|
|
#4
|
|||
|
|||
|
Code:
date = System.GetDate(DATE_FMT_ISO)
Folder.Create(SessionVar.Expand("%SourceFolder%") .."\\DBU_"..date);
|
|
#5
|
||||
|
||||
|
Works great! Thanks alot.
As for my second question, if i wanted to copy files into the created folder, what would be my destination? |
|
#6
|
|||
|
|||
|
Code:
date = System.GetDate(DATE_FMT_ISO)
sDestinationFolder = SessionVar.Expand("%SourceFolder%") .."\\DBU_"..date;
Folder.Create(sDestinationFolder);
|
|
#7
|
||||
|
||||
|
Thanks again, i'm slowly learning.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I need to divide MD5-variable to 8 part that any part have 4 letter. | Esfahan | AutoPlay Media Studio 6.0 | 3 | 11-16-2007 05:14 PM |
| problem with variable | UweGeercken | Setup Factory 6.0 | 2 | 07-12-2004 05:15 AM |
| Can't copy files with variable?? | SonG0han | AutoPlay Media Studio 5.0 | 1 | 03-06-2004 04:58 AM |
| Registry Variable Failure | ggallo | Setup Factory 5.0 | 3 | 08-30-2001 02:51 PM |
All times are GMT -6. The time now is 03:19 AM.








Linear Mode

