|
-
Sep 12th, 2000, 09:44 AM
#1
Thread Starter
Addicted Member
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]
-
Sep 12th, 2000, 09:50 AM
#2
transcendental analytic
Why don't you do something like this?
Code:
MakeFolder(Year(Now) & "_" & Month(Now) & "_" & Day(Now))
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Sep 12th, 2000, 09:57 AM
#3
Thread Starter
Addicted Member
Thanks a lot for quick reply. I really appreciate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|