Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

MS dos problem


  • Please log in to reply

#1
haywired

haywired

    New Member

  • Member
  • Pip
  • 9 posts
Dos has just decided to give me "Bad command or File name" when I enter a command. This happened all of a sudden and I can't find any spyware or virus.

Thanks
  • 0

Advertisements


#2
Tyger

Tyger

    Member 2k

  • Member
  • PipPipPipPipPip
  • 2,896 posts
Very likely the path name is incorrect. Make sure your Command folder is properly named and the Msdos.sys file is correct and in the Command folder.
  • 0

#3
haywired

haywired

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts
Thanks for the quick reply. Scince I don't know how to check this, should I have a pro handle it? I know just enough to get by most of the time. I only use dos to delete history, cookies, and temp files.

Edited by haywired, 16 December 2006 - 08:19 PM.

  • 0

#4
Jrenter2

Jrenter2

    Member

  • Member
  • PipPipPip
  • 435 posts
What was the command that you entered?
  • 0

#5
haywired

haywired

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts
deltree tempor~1
deltree history
deltree cookies
  • 0

#6
Jrenter2

Jrenter2

    Member

  • Member
  • PipPipPip
  • 435 posts
Hi Haywired,

Tyger was right in the post above. You need to make sure that your path is correct and/or the file is actually on your drive. What you can do is...

Start your computer in MS-DOS mode and type the following exactly. (Only if using Windows 95/98).
Press the enter key after each line and enter Y for yes when prompted.
Smart drive speeds things up.

CD\
smartdrv
cd\windows
deltree tempor~1
deltree cookies
deltree history

If you still get the "Bad command or File name" error, you can see if you have the file deltree on your system by doing the following:

cd\
cd\windows
dir del*.*

This will list all the files in your c:\windows directory that start with "del". You will be looking for the deltree file. If it is not there, you will need to copy it off your boot disk into the c:\windows directory.

I hope this helps. If you have any questions, please feel free to ask.
  • 0

#7
pip22

pip22

    Trusted Tech

  • Banned
  • PipPipPipPipPip
  • 2,663 posts
Also, when using the DELTREE command, you need to be in the parent folder of the sub-folder you want to delete.

For example, if the 'History' folder is in the 'Windows' folder, you need to have the DOS prompt logged in to the Windows folder before the command DELTREE HISTORY will be accepted.

C:\Windows>deltree History

But this won't work:

C:\>deltree History

The rule of thumb is: To delete a file you need to be logged into the folder containing the file.
To delete a folder you need to be logged into the folder containing that folder.

Edited by pip22, 17 December 2006 - 12:43 PM.

  • 0

#8
haywired

haywired

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts
CD\
smartdrv
cd\windows
deltree tempor~1
deltree cookies
deltree history

If you still get the "Bad command or File name" error, you can see if you have the file deltree on your system by doing the following:

cd\
cd\windows
dir del*.*

I did all this with no success. I also had a problem this weekend accessing a web site I go to. It gave me the ACCESSS IS FORBIDDEN to web server. 403 and something about Apache 3.3.9 (I think) and thenfor no aparent reason it went away and I was able to access that site. I had problems with my Frontage software a week ago, so I'm begining to think it's related somehow.
  • 0

#9
Jrenter2

Jrenter2

    Member

  • Member
  • PipPipPip
  • 435 posts

cd\
cd\windows
dir del*.*

I did all this with no success.


When you did the above, did it list the deltree file? Or was it missing?
  • 0

#10
haywired

haywired

    New Member

  • Topic Starter
  • Member
  • Pip
  • 9 posts


cd\
cd\windows
dir del*.*

I did all this with no success.


When you did the above, did it list the deltree file? Or was it missing?


I get

DELETEFI INI
TMPDELI BAT
QDW16DEL EXE
DEL TMP
4 FILES
0 DIR
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP