Archive: Is there is $getcurrentsystemdate? or need to create a dated dir.


Is there is $getcurrentsystemdate? or need to create a dated dir.
What the boss wants here now is.

A dated directory created everytime this program is run.

Why can't everyone just write in Qbasic. ;)

I need a $date
string, and that string applied to create a dirctorry.

createdirectory $INSTDIR\$date

is this possible.


You can use nsisdt from the Archive's download page or some System calls (there are some examples for that in the Archive too and some more in the forum).


Woot! Got it with the NSISdt Plugin.

:)

that was easy as pie.




mmmmmm PiE!


But have a strange thing with the NSISDt, much times, he increase or decrease the time by 1 hour. Using it in South Hemisphere is even worse. The better one is from the API "GetLocalTime". Reveals additionally the weekday and the miliseconds of the time called (but i.e. you don't get the Time Zone name, you have to call it using System Plugin). But you have format the result using some codes in the page. Get it in my signature (below):


This problem has been reported before. Does anyone want to check the NSISdt source to fix the problem?