Re: Deleting Windows Temp Files
From: JASON G (webjayce007_at_hotmail.com)
Date: 09/16/04
- Next message: JASON G: "Re: Deleting Windows Temp Files"
- Previous message: Andrew DeFaria: "Re: Question: server OS scripting"
- In reply to: Jeff Cochran: "Re: Deleting Windows Temp Files"
- Next in thread: JASON G: "Re: Deleting Windows Temp Files"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 16 Sep 2004 16:12:37 -0400
Yes, I do want to remove the sub folders.
--
JASON
"Jeff Cochran" <jeff.nospam@zina.com> wrote in message
news:4151e783.2066217744@msnews.microsoft.com...
> On Thu, 16 Sep 2004 03:52:16 GMT, "McKirahan" <News@McKirahan.com>
> wrote:
>
>>"Jeff Cochran" <jeff.nospam@zina.com> wrote in message
>>news:4151f428.2003921807@msnews.microsoft.com...
>>> On Wed, 15 Sep 2004 16:49:34 -0400, "JASON G"
>>> <webjayce007@hotmail.com> wrote:
>>>
>>> >I have a command:
>>> >objFSO.DeleteFile("c:\windows\temp\*.*")
>>> >That deletes all the files in the temp folder but not the folders
>>> >inside.
>>Is
>>> >there a way to do this?
>>>
>>> Recursively itterating through the subfolders would be needed, but
>>> this could get complicated crawling the tree. Might want to shell to
>>> another deletion tool to do this.
>>>
>>> Jeff
>>
>>"Recursively iterating [sic] through the subfolders would be needed" --
>>not
>>true.
>>
>>(Unless you want to count the number of files and subfolders deleted.)
>>
>>Deleting first-level subfolders via "FSO.DeleteFolder()" deletes their
>>sub-subfolders.
>
> I was under the impression he didn't want to delete the subfolders.
> Re-reading it though he may want to remove everything.
>
> Jeff
- Next message: JASON G: "Re: Deleting Windows Temp Files"
- Previous message: Andrew DeFaria: "Re: Question: server OS scripting"
- In reply to: Jeff Cochran: "Re: Deleting Windows Temp Files"
- Next in thread: JASON G: "Re: Deleting Windows Temp Files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|