Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
A historical request.At the DOS prompt C:\> how do I instruct the system to convert to C: so I can type a command ? I'm feeling stupid over this.At the prompt C:\> C: just puts me back to the standard prompt.I think I have to use a space somewhere but just cannot remember. Senior Moment ? Help please group
Keith

Just to clarify my earlier note.What I want is the process to achieve the prompt minus the back slash and 'greater than' symbol Prompt C:\> converted to the simple C:
Keith

Hi,
I don't have DOS running right now, but IIRC,
set prompt=
Why you want to do this is a mystery to me.
Senior moments on both ends?
;)
M2
If at first you don't succeed, you're about average.

Thanks for bothering to reply and the good humour M2.The reason I need to get to C: is not to make a permanent change of the prompt .Elsewhere in the forum you will see I am trying to repair a malfunction with my System Restore.One solution from Microsoft knowledgebase Q303354 is to rename the directory.That requires at the DOS prompt to type C: hit enter then type attrib-r-s-h_RESTORE.When I type C: at the DOS prompt I just get the prompt (C:\>) again.If I type C:\>C:attrib-r-s-h_Restore I get the dreaded wrong command Abort Retry Delete error message.I am doing something daft at the command line so needed to ask the group how to set up C: from the prompt so I can type in a valid command. A senior moment indeed Eh ? :-)) if you (or anyone) has bothered to read down this far What am I doing wrong ?
Keith

The difference between this:
c:
and this:
c:\>
is how the "prompt" variable is set.
Usually it is set by default to:
$P$G
which means "show the path followed by the greater than'.
But the appearance of the prompt is not your problem.
At the prompt, regardless of what it looks like, if you type in attrib and get 'bad command or file name' it means that attrib is not available to DOS.
Either it's gone missing or, more likely, it's not 'in the path' so DOS can't find it.
I assume you're booting on the HD, so check your path with:
path
[enter]I will normally be set to something like:
c:\windows;c:\windows\system;
And attrib needs some space:
attrib -r -h -s restore
HTH
M2
If at first you don't succeed, you're about average.

"I get the dreaded wrong command Abort Retry Delete error message... What am I doing wrong ?"
Paraphrasing error messages, for one thing.
Also:
C:attrib-r-s-h_Restore
What the heck? Spaces?? without spaces, DOS sees that as one 'command' and will definitely return the better known 'bad command or filename' message
From the M$KB
Type attrib -r -s -h _RESTORE, and then press ENTER.
Type ren _RESTORE oldrest, and then press ENTER.
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

Sure thing - DOS is very specific.
Hope the fix works out
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

![]() |
PC thinks DVD drive is a ...
|
Brightness in CRT ?
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |