Delete TEMP files in DOS?
Results 1 to 3 of 3

Thread: Delete TEMP files in DOS?

  1. #1
    Join Date
    Aug 2001
    Location
    Mi
    Posts
    109

    Delete TEMP files in DOS?

    I have seen posts stating that they put DOS commands in the autoexec.bat to rid PC of temp files upon boot. My question is, is it better in any way to delete the files in DOS rather than deleting them through windows? I had read a while back that deleting in DOS does a more thourough job? is it true?

  2. #2
    Join Date
    Nov 2000
    Location
    The Netherlands
    Posts
    2,628
    Well, if they're gone they're gone.
    I'd advise against emptying C:\Windows\Temp through a line in your Autoexec.bat, since some programs during install put stuff in your temp directory that they need on reboot in order to complete the installation.

    You could make a batch file for emptying C:\Windows\Temp that you could activate through a desktop shortcut.

    Mine looks like this:

    @ECHO OFF
    DELTREE /Y C:\WINDOWS\TEMP\*.* > NUL
    DELTREE /Y C:\WINDOWS\APPLIC~1\MICROS~1\OFFICE\SHORTC~1\*.TMP > NUL
    DELTREE /Y C:\WINDOWS\RECENT\*.* > NUL
    ECHO Done!

    As you see it also deletes some other stuff.

    Other things like Temp internet files, history, and the like are better suited to be deleted at startup through a line in your Autoexec.

    Take a look here for some tips: http://www.pcforrest.freeserve.co.uk/deltemps_bat.htm

    Good luck, Tony

  3. #3
    Join Date
    Aug 2000
    Location
    Seattle, WA, USA
    Posts
    479
    To delete everything except cookies in the c:\Windows\Temporary Internet file:

    Do a computer restart.
    Hold down the "Ctrl" key during restart until you get the "Startup Menu".
    (It may stop part way through and ask you to hit "Esc" to continue.)

    A menu will appear.
    With the down arrow, scroll down to "Command Prompt Only"

    Hit "Enter":
    See: C:\>

    Type: smartdrv
    Hit "enter"

    See: C:\>

    Type: deltree /y windows\tempor~1
    Note: there is a space after "deltree" and after "/y"

    Hit "enter"
    The computer will grind on for awhile depending on how many temporary internet files you have accumulated. When it's done you'll see:
    C:\>

    You'll probably have to do a Ctrl+Alt+Del to restart your computer.
    There are some utility programs that also delete all the files.


    ------------------
    Larry
    Seattle WA
    Larry
    Seattle WA

Thread Information

Users Browsing this Thread

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

Posting Permissions

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