PC Review


Reply
Thread Tools Rate Thread

How does 'cd' work

 
 
noemailplease0001@gmail.com
Guest
Posts: n/a
 
      28th Dec 2007
Below is my command prompt capture

------------------------------------------------------
C:\Documents and Settings\User>cd K:\abc
C:\Documents and Settings\User>
------------------------------------------------------

when I 'cd' to k:\abc why didn't it move to that directory

After the above when I tried to move to K:, I get the below

--------------------------------------------------------------
C:\Documents and Settings\User>cd K:
K:\abc

C:\Documents and Settings\User>
--------------------------------------------------------------

Similarly I tried moving to c: but I get the below

------------------------------------------------------
C:\Documents and Settings\User>cd c:
C:\Documents and Settings\User

C:\Documents and Settings\User>
------------------------------------------------------

Why is this so, due to some other program installation (Visual Studio
etc)?

Thanks,
T K
 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      28th Dec 2007

<(E-Mail Removed)> wrote in message
news:f24aacfc-ffc3-4fa1-b901-(E-Mail Removed)...
> Below is my command prompt capture
>
> ------------------------------------------------------
> C:\Documents and Settings\User>cd K:\abc
> C:\Documents and Settings\User>
> ------------------------------------------------------
>
> when I 'cd' to k:\abc why didn't it move to that directory
>
> After the above when I tried to move to K:, I get the below
>
> --------------------------------------------------------------
> C:\Documents and Settings\User>cd K:
> K:\abc
>
> C:\Documents and Settings\User>
> --------------------------------------------------------------
>
> Similarly I tried moving to c: but I get the below
>
> ------------------------------------------------------
> C:\Documents and Settings\User>cd c:
> C:\Documents and Settings\User
>
> C:\Documents and Settings\User>
> ------------------------------------------------------
>
> Why is this so, due to some other program installation (Visual Studio
> etc)?
>
> Thanks,
> T K


The command

C:\Documents and Settings\User>cd K:\abc

will change the working directory on drive K: to "\abc",
which is invisible to you because your current working
drive is C:. It becomes visible when you change the
working drive to K:, e.g. by typing

C:\Documents and Settings\User>K:

You can change both the working drive and the working
directory with a single command like so:

C:\Documents and Settings\User>cd /d K:\abc

All this is explained in full when you type

cd /?

at the Command Prompt.


 
Reply With Quote
 
noemailplease0001@gmail.com
Guest
Posts: n/a
 
      28th Dec 2007
On Dec 28, 7:06 am, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> <noemailplease0...@gmail.com> wrote in message
>
> news:f24aacfc-ffc3-4fa1-b901-(E-Mail Removed)...
>
>
>
> > Below is my command prompt capture

>
> > ------------------------------------------------------
> > C:\Documents and Settings\User>cd K:\abc
> > C:\Documents and Settings\User>
> > ------------------------------------------------------

>
> > when I 'cd' to k:\abc why didn't it move to that directory

>
> > After the above when I tried to move to K:, I get the below

>
> > --------------------------------------------------------------
> > C:\Documents and Settings\User>cd K:
> > K:\abc

>
> > C:\Documents and Settings\User>
> > --------------------------------------------------------------

>
> > Similarly I tried moving to c: but I get the below

>
> > ------------------------------------------------------
> > C:\Documents and Settings\User>cd c:
> > C:\Documents and Settings\User

>
> > C:\Documents and Settings\User>
> > ------------------------------------------------------

>
> > Why is this so, due to some other program installation (Visual Studio
> > etc)?

>
> > Thanks,
> > T K

>
> The command
>
> C:\Documents and Settings\User>cd K:\abc
>
> will change the working directory on drive K: to "\abc",
> which is invisible to you because your current working
> drive is C:. It becomes visible when you change the
> working drive to K:, e.g. by typing
>
> C:\Documents and Settings\User>K:
>
> You can change both the working drive and the working
> directory with a single command like so:
>
> C:\Documents and Settings\User>cd /d K:\abc
>
> All this is explained in full when you type
>
> cd /?
>
> at the Command Prompt.


Thank you, should have tried the help before posting, will do better
next time

Tk
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO MAKE A LIST OF WORK SHEET IN WORK BOOK IN EXCEL 2007 goutam Microsoft Excel Programming 1 1st Feb 2008 07:40 AM
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? Marc Microsoft Excel Programming 2 12th Jul 2006 04:10 AM
Working without word work file, memory nearly full. Save work. =?Utf-8?B?RGF2ZSBXaGl0?= Microsoft Word Document Management 1 17th Nov 2004 09:39 PM
Wireless mouse/keyboard don't work after system restart only work after power down tfdempsey@comcast.net Windows XP General 1 1st Apr 2004 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:53 PM.