Re: Deleting Windows Temp Files

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: JASON G (webjayce007_at_hotmail.com)
Date: 09/16/04


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 


Relevant Pages

  • Advanced Security for Macintosh Accessible Share
    ... (everything Checked EXCEPT Create Folders / Append Data, Delete Subfolders and Files, Delete applying this to "FOLDERS AND SUBFOLDERS" ... Jeff ...
    (microsoft.public.win2000.security)
  • Re: RFI - Moving files between folders in doc libraries - any improvements in this behavior?
    ... > and folders (subfolders) to organize content. ... SharePoint is a new creation. ... users did not have document libraries into which they can upload ...
    (microsoft.public.sharepoint.portalserver)
  • Re: folderLastAccessed script
    ... It will consider nothing other than the subfolders of ... I would like to get the last time all the folders were last accessed. ... Dim WshShell ... Dim fs, f, s, strfolder ...
    (microsoft.public.scripting.vbscript)
  • Re: Making folders....
    ... Just the subfolders on the root level. ... You see the folders for each country are located as a subfolder ... The second script is a version that will create new folders only at ... If Not oFSO.FolderExists(sFolder & "\" & sNewFolder) Then ...
    (microsoft.public.windowsxp.general)
  • Re: Exchange/Outlook 2003 mailbox sizes - best practises
    ... the data is important enough to keep, it belongs on the server. ... Well he stores practically everything that he does into his mailbox ... Don't let users create subfolders under built-in folders. ...
    (microsoft.public.windows.server.sbs)