1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Temp Delete.bat

Discussion in 'Legacy Windows' started by aussiejohn, 2004/12/11.

Thread Status:
Not open for further replies.
  1. 2004/12/11
    aussiejohn

    aussiejohn Well-Known Member Thread Starter

    Joined:
    2002/01/07
    Messages:
    293
    Likes Received:
    1
    Hi Guys!
    I created a Temp Delete.bat file on my desktop to easily empty my temp folder with DELTREE /Y C:\WINDOWS\TEMP\*.* and this works fine.
    The problem is, when I move this Temp.bat file into the start menu and use it the path comes up as C:\Program Files\Common Files\SYSTEM\Mapi\1033\95DELTREE /Y C:\WINDOWS\TEMP\*.*.
    Why is this, and am I deleting more than just the temp file by using it from the start menu with this command line??
     
  2. 2004/12/11
    Dez Bradley

    Dez Bradley Inactive

    Joined:
    2004/10/11
    Messages:
    246
    Likes Received:
    0
    Not sure why it has the path as that, if anything i would think it was c:\windows\Desktop. Personally i wouldnt put the actual batch file on the desktop or in the start menu. I would put it somewhere like c:\ , and create a shortcut in these locations.

    Another command line that would work (the one i use because deltree isnt available in Win 2000 and XP but delete is) is this:

    del c:\Windows\Temp\*.* /s /q

    Substituting del for delete works also.

    This works in all versions of Windows, where yours only works in less than Windows ME.

    The /s in the argument means include subfolders, and the /q switch means quiet, or answer yes to any questions like deleting hidden or read only files.
     

  3. to hide this advert.

  4. 2004/12/12
    aussiejohn

    aussiejohn Well-Known Member Thread Starter

    Joined:
    2002/01/07
    Messages:
    293
    Likes Received:
    1
    Thanks Dez, that seems to work and gives me a NORMAL command path :)
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.