• *.tmp files in c:windows

    Author
    Topic
    #361765

    I wrote a msdos batch file (fairly primmitive) to clear out .tmp files from my temp and windowstemp directories – works, but now I find I have a lot, in fact lots + lots of ffe?.tmp files in my c:windows directory. What are these? Most are 0 bytes. what a nuisance.
    Please help

    Viewing 0 reply threads
    Author
    Replies
    • #547830

      Hi
      Polish your batch file. These files could have the ‘read only’
      attribute checked. Try a batch file like this – without the REMs, of course:

      @ECHO OFF

      REM if you’re using Win 2000 : CD X:Documents and SettingsUserNameLocal SettingsTemp, where X is the drive with your OS on.
      CD C:
      attrib *.tmp -s -h -r
      REM and do this for ~mp etc if you want.
      Del *.tmp
      Del *.~mp
      Del *.temp

      CLS
      EXIT
      ******************************************************

      Note: you cannot delete temp files that are still being used; you’ll get a ‘Sharing Violation’ error message.

      For more detail, slide over to my web site, click the Index button and select ‘ Autoclean Temp Files’ (Green button for PDF, red for Doc)

      Rgds

    Viewing 0 reply threads
    Reply To: *.tmp files in c:windows

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: