Results 1 to 3 of 3

Thread: Folders! Help Please

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224

    Question

    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]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224
    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
  •  



Click Here to Expand Forum to Full Width