Results 1 to 3 of 3

Thread: How to create file folder in runtime?

  1. #1

    Thread Starter
    Lively Member Satangel's Avatar
    Join Date
    Aug 2000
    Location
    KL,Malaysia
    Posts
    85
    I was wondering how to create a folder name call "maths" in c drive in vb runtime.
    and can anyone show me the simplest code.


  2. #2
    Guest
    Use the Dir function and MkDir statement to find if a folder exists and create one if it doesn't.

    Code:
    If Dir("C:\maths", vbDirectory) = "" Then
         MkDir "C:\maths"
    Else
         Exit Sub
    End If

  3. #3

    Thread Starter
    Lively Member Satangel's Avatar
    Join Date
    Aug 2000
    Location
    KL,Malaysia
    Posts
    85

    Thumbs up Thanks!

    I am appreciate it,
    Thanks,Matthew Gates .

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