Why is "deltree /y Windows\tempor~1" a 'bad command'?
Results 1 to 11 of 11

Thread: Why is "deltree /y Windows\tempor~1" a 'bad command'?

  1. #1
    Join Date
    Feb 2000
    Location
    East Coast
    Posts
    312

    Why is "deltree /y Windows\tempor~1" a 'bad command'?

    When rebooting to DOS and command prompt only, I get "Bad command or file name" using
    deltree()/y()Windows\tempor~1
    where ()= space.
    My older method yields the same results.
    At C:\> (type)cd()windows (enter)
    At windows prompt (type)
    deltree()/y()tempor~1
    deltree()/y()temp
    deltree()/y()History

    All enters give "bad command" result. Any clues to what is going wrong? Or an alternative method?
    Thanks...carson

  2. #2
    Join Date
    Aug 2000
    Location
    Seattle, WA, USA
    Posts
    479
    As I'm sure you're aware, we just did a long thread to describe how to delete all the Temporary Internet Files. It's this thread: http://discussions.virtualdr.com/For...ML/042078.html

    The DOS commands you're using are identical to the ones I used to successfully delete all my Temporary Internet File. The only clue I have (admitedly a long shot) is found in the 23 and 24th submission on the thread referenced above where Goldust and Mosaic1 recognize that in Goldust's case there is an intermediate file between Windows and Temporary Internet. i.e. Windows\XXXXX\Temporary Internet Files. I'm not sure how Goldust got that arrangement; however, one would of coarse, have to include the extra file in the string to get the deltree entry to work.

    Otherwise as I said earlier you commands look correct to me.

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

  3. #3
    Join Date
    Jan 2000
    Posts
    586
    make sure deltree is in your command folder.
    also you could try REN for renaming.

    like renaming junk1 junk2 etc.

    then you can delete junk folders in windows

    TheGorx http://www.geocities.com/thegorx/Windows/index.htm


  4. #4
    Join Date
    Oct 2000
    Location
    Eeklo, in the East-Flanders
    Posts
    4,974
    deltree.exe has to be on disk
    and the path statement gotta include the directory it is in.

    therefore; set path in autoexec.bat
    set path=C:\;C:\windows\;C:\windows\command\;


    or; write the full line including the path
    C:\windows\command\deltree /y C:\windows\Windows\tempor~1


    ------------------
    Remember, it's FREE advice. It may be worth all of two cents.

    Jaak
    Kind regards, Jaak.

    When I pull my bootstraps, why don't I load Windows?

  5. #5
    Join Date
    Sep 1999
    Location
    Ottawa, Canada
    Posts
    1,375
    If you don't have an autoexec.bat like me, you can get around this by right clicking on your DOS shortcut select Properties | Program and down in the Batch line enter Jaak's line:

    set path=C:\;C:\windows\;C:\windows\command\;

    This seems to work for me.

    ------------------
    Just trying to give others a friendly hand.
    Just trying to give others a friendly hand.

  6. #6
    Join Date
    Mar 2000
    Location
    League City , Texas
    Posts
    880
    I realize that this is not what you asked...

    And, maybe it's just me...but if I travel to my TIF directory in Windows...and drill one down to Content IE5. Then "Select All" and "Delete"...everything in the 8 subfolders, Content IE5, and TIF ... goes bye bye.

    Of course if this seems too easy, you can always use the "dir /a" in DOS to confirm that they are all gone...until you visit your next page.

  7. #7
    Join Date
    Sep 1999
    Location
    home
    Posts
    176
    I have found that you always need to start
    the DOS command with eg
    C:\Windows\Command\deltree.exe followed
    by the parameters ..
    regards

  8. #8
    Join Date
    Feb 2000
    Location
    East Coast
    Posts
    312
    Thanks everyone
    Mosaic 1...Correct. The "deltree.exe" File is missing. Also I dont have autoexec.bat It's unchecked and clear in "msconfig." (as advised from here last year)
    So i need to restore the file from the win98 disk.
    Question:
    Restore from____________
    Save File In____________

    What are the paths for the above?
    Dont know how it got missing , but thanks again for the info.
    carson

    [This message has been edited by carson (edited 05-06-2001).]

  9. #9
    Join Date
    Aug 1999
    Location
    Hong Kong
    Posts
    2,289
    Hi carson...pop your Win98 CD in, then go to Start > Run, type SFC and OK it. Use SFC's extract one file option to place deltree.exe in C:\Windows\Command.

  10. #10
    Join Date
    Feb 2000
    Location
    East Coast
    Posts
    312
    Thanks HKEd.
    Yep, The Command Folder was missing along with deltree.exe. Also typing M:\windows98 in "restore from" didnt help. Re-read Mosaic1. Solution= M:\win98.

    Thanks again to everyone for the tips and instructions. All responses were enlightening.
    A Success Story

    [This message has been edited by carson (edited 05-07-2001).]

  11. #11
    Join Date
    Feb 2000
    Location
    East Coast
    Posts
    312
    Thanks Mosaic1...Yes did a complete "SFC".
    Couple Downloaded Program Files missing. I dont think they were of any concern. Probably from a deleted program. A few updated files from Zonealarm update. And a rpess.exe missing that I renamed according to instructions from the board. Everything else OK. Your help is always appreciated.
    carson

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
  •