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)
-   -   to create folder with date and time (https://www.kinook.com/Forum/showthread.php?t=1719)

sri 05-03-2006 07:44 AM

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?

kinook 05-03-2006 09:02 AM

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")]


All times are GMT -5. The time now is 03:08 AM.


Copyright © 1999-2023 Kinook Software, Inc.