Results 1 to 2 of 2

Thread: Deleting a directory

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Launceston, Tasmania, Australia
    Posts
    44

    Post

    When I have had to use code to delete all files in a particular directory, I have made my program select each file 1 by 1 and go down the file list deleting them, this is ok for small directories but for larger ones it takes quite a long time, I was wondering is there a way to get rid of them in one clean sweep?

    ------------------
    Mooose

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    Use:

    Kill MyDrive\MyDir\*.*

    then use RmDir similarly to remove the directory itself

    ------------------
    cintel rules
    www.cintelsoftware.co.uk

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