-
Hi Guys
This is sort of an extension of a previous problem that was solved for me. I need to make once a day at a certain time and I need the name of the folder to be in the following format: Year(+currentyear)\Todays date. So the name of the folder will be something like y2000\12/10/.
Here's what I have
Code:
'Got from s@nsis
Private Function MakeFolder(NewDir as String)
Dim dirname As String
dirname = "C:\Dev\"
NewDir = dirname & NewDir
MkDir NewDir
End Function
Private Sub Form_Load()
MakeFolder("I need this name to change daily")
End Sub
Please help
[/code]
-
Why don't you do something like this?
Code:
MakeFolder(Year(Now) & "_" & Month(Now) & "_" & Day(Now))
-
Thanks a lot for quick reply. I really appreciate it