delete file using wmi



Hello

I'm trying to delete files and folders from the temp folder however if I use
the FSO I get an insufficient rights error

found out at MS site a script to delete the folders inside a folder using
WMI which wprks well but doesn't delete the files

any ideas?
RT



.



Relevant Pages

  • Re: Virus?
    ... | wants to try and delete those temp folders from either normal or safe ... | I have been using these instructions in spyware removal forums for the ... manually search for and delete the file: I once had a file in a Temp folder ... that I could visably see with Windows Explorer/My Computer, ...
    (alt.comp.anti-virus)
  • Re: Delete All Files/Folders in Temp Dir...
    ... Fastest Checks for Files or Folders ... Minimal Code for a Single or Multiple File Extension Inclusive/Exclusive ... I want to delete all the folders and files inside the temp folder ... A long time ago I used the Kill command to do it but I fogot the correct ...
    (microsoft.public.vb.general.discussion)
  • Re: deleting contents of Local Settings/Temp
    ... Cookies are somewhat beneficial for retaining site information. ... *It's normal to find replicated Temporary Internet Files folders. ... Also I got a message that folders Cookie and History in Temp folder are ...
    (microsoft.public.windowsxp.general)
  • Re: Thousands of WPTEMP folders
    ... The date and time was 3/14/2008 12:04 AM, and on a whim, Gregg Hill pounded out on the keyboard: ... I wanted to clean out the user's temp folder, but when I clicked on it, it took over fifteen minutes to show the searching flashlight, and it never did show the folder contents. ... I Googled and found references to problems with WordPerfect 10 and GroupWise and using the Send To from a right-click, but this user has WordPerfect 12 and does not have GroupWise. ... Any idea what would create over 350,000 WPTEMP folders? ...
    (microsoft.public.windowsxp.general)
  • Temp Folders - Deleting
    ... A program called Musicmatch had a glitch in its latest version and created ... an issue that required its remove and reinstallation. ... files and folders in the Temp directory". ... and files I find in the Temp folder or directory and NOT the Temp folder ...
    (microsoft.public.windowsxp.basics)