Results 1 to 5 of 5

Thread: sub folder

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    261

    sub folder

    hi all
    im making a backup program to restore from a info file store on the cd in a folder
    is it posible to get this folders name as the folders name will change from cd to cd

    any help would be great

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: sub folder

    System.IO.Directory.GetDirectories will return you a list of sub-directories in a given path.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    261

    Re: sub folder

    thanks for reply negative0 im using vb6 not net, but i did apply this method just now and changed it a little and works greate thanks
    Code:
    Set FSO = CreateObject("Scripting.FileSystemObject")
    'dd is drive letter
    'klk is from a folder list using dirlstbox
    FSO.GetFile ((Mid(DD, 1, 3)) + klk + "\" + klk + ".dtb")

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: sub folder

    If you are using VB6, you should post your question in the Classic VB Forum instead of the .Net forum.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    261

    Re: sub folder

    thanks will do

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