cmd to put me in c:\>

  • Thread starter Thread starter kirit kapadia
  • Start date Start date
K

kirit kapadia

Hi,

From windows2000, when I type start>run>cmd
It puts me into C:\Documents and settings\user

How can I default it to just c:\>

Also, how can i execute ping, etc commands from c:\>

Thanks

Kirit
 
kirit kapadia said:
Hi,

From windows2000, when I type start>run>cmd
It puts me into C:\Documents and settings\user

How can I default it to just c:\>

Also, how can i execute ping, etc commands from c:\>

Thanks

Kirit

cd c:\ for change directory , type help for a list of some commands
 
kirit said:
Hi,

From windows2000, when I type start>run>cmd
It puts me into C:\Documents and settings\user

How can I default it to just c:\>

Start | Run | cmd /c cd \
Also, how can i execute ping, etc commands from c:\>

Make sure your PATH contains the directories in which PING, etc.,
reside:

C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;
 
kirit kapadia said:
Hi,

From windows2000, when I type start>run>cmd
It puts me into C:\Documents and settings\user

How can I default it to just c:\>

Hit Winkey+Pause, go to Advanced/Environment Variables.
In the top box (User variables), add or change HOMEPATH
to a single forward slash ("/" without the quotes).
Also, how can i execute ping, etc commands from c:\>

As long as the PING.EXE etc. commands are in your search
path (see the PATH system variable in the same screen as
above) they will execute from any folder.

Rick
 
Hit Winkey+Pause, go to Advanced/Environment Variables.
In the top box (User variables), add or change HOMEPATH
to a single forward slash ("/" without the quotes).

Why a forward slash rather than the Windows-standard backward slash?
 
kirit said:
From windows2000, when I type start>run>cmd
It puts me into C:\Documents and settings\user

How can I default it to just c:\>

Take a look here:

http://groups.google.com/[email protected]

Also, how can i execute ping, etc commands from c:\>

If ping.exe doesn't work from a command prompt, you most likely have a
corrupted path...

Take a look here (most likely the Reg_Expand_Sz vs. Reg_Sz type setting in
registry):

http://home.comcast.net/~stewartb/cmdprompt.html#6
 
Thanks to all.
As far as back or front slash is concerned, i guess either works.

Issue resolved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top