Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-03-2006, 07:44 AM
sri sri is online now
Registered User
 
Join Date: 03-22-2006
Location: India
Posts: 8
to create folder with date and time

I want to create a folder along with date and time when i tried it with the macro %DATETIME% i am getting an error

Error creating destination path 'C:\Programs\Executables\Exes_2006-05-03 6:17:36 PM\': The parameter is incorrect.

where Exes_2006-05-03 6:17:36 PM\
is the folder i want to create

how can i solve this problem?
Reply With Quote
  #2  
Old 05-03-2006, 09:02 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
Windows does not allow : characters in filenames.
http://msdn.microsoft.com/library/en...ing_a_file.asp

Use a date/time format that doesn't include such characters. You can use one of the system script function helpers.
http://www.visualbuild.com/Manual/sysscriptdatetime.htm

For instance:
[vbld_FormatDateEx(Now, "yyyy-mm-dd HH-MM-SS AP")]
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 12:12 PM.


Copyright © 1999-2023 Kinook Software, Inc.