+ Reply to Thread
Results 1 to 3 of 3

Kill Command - file not found error

  1. #1
    Forum Contributor
    Join Date
    07-12-2005
    Posts
    143

    Kill Command - file not found error

    Hi there,

    I'm trying a kill files within a folder in my c:\ drive. I created a test folder 'test delete' but when i run the code "kill "c:\testdelete\*.*"" i just get an error message "file not found". I checked the location and it's in the right place. What am i missing?

    Any help much appreciated.

    thanks

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Kill Command - file not found error

    I suggest trying one file at a time. You can discover these using the Dir statement.

    Do Loop around until Dir("C:\testdelete\*.") is empty.
    Martin

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Kill Command - file not found error

    Is it a typo or did you create a folder called "test delete" and set your kill command to clear "c:\testdelete"?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1