If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
prompt still says C:
in DOS in Win98 SE, if I CD or CHDIR to G:, the prompt still says C:
\ . I remember that I used to get the drive that I switched to. |
#2
|
|||
|
|||
prompt still says C:
wrote in message ups.com... in DOS in Win98 SE, if I CD or CHDIR to G:, the prompt still says C: \ . I remember that I used to get the drive that I switched to. The CD command is a Change Directory command, not a Change Drive command. If you issue the command CD G: then DOS will simply display the name of the current directory on the G drive, but it will not switch to it. From the C drive, you can switch to the G drive by simply typing G: from the C prompt. [Note that there is a colon after the drive letter when you issue a command] -- "You can fool some of the people all of the time, and those are the ones you want to concentrate on." |
#3
|
|||
|
|||
prompt still says C:
|
#4
|
|||
|
|||
prompt still says C:
On Mon, 30 Jul 2007 11:59:56 -0700,
in DOS in Win98 SE, if I CD or CHDIR to G:, the prompt still says C: \ . I remember that I used to get the drive that I switched to. As has been noted, CD does not change drive letter. You have a current drive letter, which is changed by entering the new drive letter as a command, e.g. Current drive = C: C:\SomePath G: enter Current drive = G: G:\ Each drive letter has a current directory, and it is this that the CD command will either display... Command... C:\SomePath CD Output... C:\SomePath ....or change: Command... C:\SomePath CD \New\Path Output... (none) Current drive = C: Current directory for C: = \New\Path Current directory for G: = \ (unchanged) C:\New\Path When you specify a drive letter in a CD command, you are specifying which drive's current directory is to be changed: Command... C:\SomePath CD G:\New\Path Output... (none) Current drive = C: Current directory for C: = \SomePath (unchanged) Current directory for G: = \New\Path C:\SomePath There is an evolution of CD syntax that allows one to change drive and directory in one go, but I don't know if that applies to Win98. It may be part of the .BAT enhancements within the NT family. -------------------- ----- ---- --- -- - - - - Tip Of The Day: To disable the 'Tip of the Day' feature... -------------------- ----- ---- --- -- - - - - |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
dos prompt | tomS | General | 2 | January 21st 07 03:32 PM |
Command Prompt | Chris | General | 4 | September 25th 05 04:14 AM |
C:\ PROMPT PROBLEMS | Pauline | General | 1 | September 22nd 04 09:40 PM |
PW Prompt, Can't Get Rid of It | Brad | General | 2 | August 24th 04 03:58 PM |
Command Prompt | Katira | General | 5 | June 12th 04 12:41 PM |