[bb] Create directory with the name of curent date by Wings [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:39

Previous topic - Next topic

BlitzBot

Title : Create directory  with the name of curent  date
Author : Wings
Posted : 1+ years ago

Description : Creates a directory in curent dir with the name of curent date

Code :
Code (blitzbasic) Select
;Creates a directory in curent dir with the name of curent date.
a$=CurrentDate$()
d1$=Mid$(a$,1,2)
d2$=Mid$(a$,4,3)
d3$=Mid$(a$,8,4)

dir$=d3$+"-"+d2$+"-"+d1$
ExecFile("cmd /C "+Chr$(32)+"MKDIR "+dir$+Chr$(32))


Comments :


Yan(Posted 1+ years ago)

 You're gonna kick yourself...
CreateDir(Replace(CurrentDate$(), " ", "-"))o)


Wings(Posted 1+ years ago)

 My good Repleace is sweet ! [/i]