A Windows 98 & ME forum. Win98banter

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.

Go Back   Home » Win98banter forum » Windows 98 » General
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

prompt still says C:



 
 
Thread Tools Display Modes
  #1  
Old July 30th 07, 07:59 PM posted to microsoft.public.win98.gen_discussion
[email protected][_2_]
External Usenet User
 
Posts: 1
Default 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  
Old July 30th 07, 08:23 PM posted to microsoft.public.win98.gen_discussion
Hugh Candlin
External Usenet User
 
Posts: 209
Default 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."
  #4  
Old August 2nd 07, 11:18 AM posted to microsoft.public.win98.gen_discussion
cquirke (MVP Windows shell/user)
External Usenet User
 
Posts: 202
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 01:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Win98banter.
The comments are property of their posters.