1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

dos command change directory cd .

Discussion in 'Windows Vista' started by viensdansmavie, Sep 27, 2009.

  1. what is this command cd .
    it is not give a error message and it doesn't anything.
    what is this cd and one point cd .
     
  2. Guest

    cd . means change to the current directory.

    --
    ..
    --
    "viensdansmavie" <viensdansmavie@discussions.microsoft.com> wrote in message
    news:74511025-3ECA-4B7A-A63D-F632D9789C3E@microsoft.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > what is this command cd .
    > it is not give a error message and it doesn't anything.
    > what is this cd and one point cd . <!--colorc--><!--/colorc-->
     
  3. vista bill

    vista bill Guest

    On Sep 27, 5:52 pm, viensdansmavie
    <viensdansma...@discussions.microsoft.com> wrote:<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > what is this command cd .
    > it is not give a error message and it doesn't anything.
    > what is this cd and one point cd .<!--colorc--><!--/colorc-->

    ----------------------------------------------------------------------------------------------------------------

    Ah, those were the days! In dos, "cd" meant change directory. Wish I
    could use some of the dos commands in Vista.

    Bill
     
  4. Kerry Brown

    Kerry Brown Guest

  5. PencilState

    PencilState Guest

    "vista bill" <billsrrempire@gmail.com> wrote in message
    news:7d7caec1-987e-42d0-b827-3a805ffed288@g23g2000vbr.googlegroups.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > On Sep 27, 5:52 pm, viensdansmavie
    > <viensdansma...@discussions.microsoft.com> wrote:<!--coloro:green--><span style="color:green <!--/coloro-->
    >> what is this command cd .
    >> it is not give a error message and it doesn't anything.
    >> what is this cd and one point cd .<!--colorc--><!--/colorc-->
    >
    > ----------------------------------------------------------------------------------------------------------------
    >
    > Ah, those were the days! In dos, "cd" meant change directory. Wish I
    > could use some of the dos commands in Vista.
    ><!--colorc--><!--/colorc-->

    Try opening a command prompt.
     
  6. A beginners guide to the Command Prompt
    <http://www.codejacked.com/a-beginners-guide-to-the-command-prompt/>
    -=-

    "viensdansmavie" wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > what is this command cd .
    > it is not give a error message and it doesn't anything.
    > what is this cd and one point cd .<!--colorc--><!--/colorc-->
     
  7. vista bill

    vista bill Guest

    On Sep 27, 6:16 pm, Ǝиçεl <l...@discussions.microsoft.com> wrote:<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > A beginners guide to the Command Prompt
    > <http://www.codejacked.com/a-beginners-guide-to-the-command-prompt/>
    > -=-
    >
    >
    >
    > "viensdansmavie" wrote:<!--coloro:green--><span style="color:green <!--/coloro-->
    > > what is this command cd .
    > > it is not give a error message and it doesn't anything.
    > > what is this cd and one point cd .- Hide quoted text -<!--colorc--><!--/colorc-->
    >
    > - Show quoted text -<!--colorc--><!--/colorc-->

    ------------------------------------------------------------------------------------------------------------------
    << A beginners guide to the Command Prompt
    <http://www.codejacked.com/a-beginners-guide-to-the-command-prompt/><!--coloro:blue--><span style="color:blue <!--/coloro--><!--coloro:green--><span style="color:green <!--/coloro-->
    >><!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->

    Thanks Pencil State and Ǝиçεl



    Bill
     
  8. ray

    ray Guest

    On Sun, 27 Sep 2009 14:52:01 -0700, viensdansmavie wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > what is this command cd .
    > it is not give a error message and it doesn't anything. what is this cd
    > and one point cd .<!--colorc--><!--/colorc-->

    'cd' is 'change directory'.
    'cd' changes to home directory.
    'cd .' changes to the current directory - i.e. where you alread are - not
    very useful.
    'cd ..' changes to the parent directory - i.e. one level up.
     
  9. Tim Slattery

    Tim Slattery Guest

    viensdansmavie <viensdansmavie@discussions.microsoft.com> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >what is this command cd .
    >it is not give a error message and it doesn't anything.
    >what is this cd and one point cd .<!--colorc--><!--/colorc-->

    "cd" is "change directory". "." means the current directory, and ".."
    means the parent directory. So "cd ." means "change to the current
    directory". Since you're already there, that means you've told the
    machine to do nothing and that's what it's doing.

    --
    Tim Slattery
    MS MVP(Shell/User)
    Slattery_T@bls.gov
     
  10. Tim Slattery

    Tim Slattery Guest

    ray <ray@zianet.com> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >On Sun, 27 Sep 2009 14:52:01 -0700, viensdansmavie wrote:
    ><!--coloro:green--><span style="color:green <!--/coloro-->
    >> what is this command cd .
    >> it is not give a error message and it doesn't anything. what is this cd
    >> and one point cd .<!--colorc--><!--/colorc-->
    >
    >'cd' is 'change directory'.
    >'cd' changes to home directory.<!--colorc--><!--/colorc-->

    That's Unix (and presumably Linux) behavior. Those systems have the
    concept of a home directory for each user. Windows doesn't have that
    concept, and AFAIK, using CD without any destination does nothing.

    --
    Tim Slattery
    MS MVP(Shell/User)
    Slattery_T@bls.gov
     
  11. Gordon

    Gordon Guest

    "Tim Slattery" <Slattery_T@bls.gov> wrote in message
    news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > That's Unix (and presumably Linux) behavior. Those systems have the
    > concept of a home directory for each user. Windows doesn't have that
    > concept, and AFAIK, using CD without any destination does nothing.
    ><!--colorc--><!--/colorc-->

    CD and CD. do nothing on Linux, either.
     
  12. ray

    ray Guest

    On Mon, 28 Sep 2009 15:52:06 +0100, Gordon wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > "Tim Slattery" <Slattery_T@bls.gov> wrote in message
    > news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...<!--coloro:green--><span style="color:green <!--/coloro-->
    >>
    >> That's Unix (and presumably Linux) behavior. Those systems have the
    >> concept of a home directory for each user. Windows doesn't have that
    >> concept, and AFAIK, using CD without any destination does nothing.
    >>
    >><!--colorc--><!--/colorc-->
    > CD and CD. do nothing on Linux, either.<!--colorc--><!--/colorc-->

    Actually, using CD on *nix generally generates a 'command not found'
    error.
     
  13. Gordon

    Gordon Guest

    "ray" <ray@zianet.com> wrote in message
    news:7ic2t4F2t9b43U116@mid.individual.net...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > On Mon, 28 Sep 2009 15:52:06 +0100, Gordon wrote:
    ><!--coloro:green--><span style="color:green <!--/coloro-->
    >> "Tim Slattery" <Slattery_T@bls.gov> wrote in message
    >> news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...<!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >>>
    >>> That's Unix (and presumably Linux) behavior. Those systems have the
    >>> concept of a home directory for each user. Windows doesn't have that
    >>> concept, and AFAIK, using CD without any destination does nothing.
    >>>
    >>><!--colorc--><!--/colorc-->
    >> CD and CD. do nothing on Linux, either.<!--colorc--><!--/colorc-->
    >
    > Actually, using CD on *nix generally generates a 'command not found'
    > error.<!--colorc--><!--/colorc-->

    Well, to be pedantic, yes it does!
     
  14. Ian D

    Ian D Guest

    "Tim Slattery" <Slattery_T@bls.gov> wrote in message
    news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > ray <ray@zianet.com> wrote:
    ><!--coloro:green--><span style="color:green <!--/coloro-->
    >>On Sun, 27 Sep 2009 14:52:01 -0700, viensdansmavie wrote:
    >><!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >>> what is this command cd .
    >>> it is not give a error message and it doesn't anything. what is this cd
    >>> and one point cd .<!--colorc--><!--/colorc-->
    >>
    >>'cd' is 'change directory'.
    >>'cd' changes to home directory.<!--colorc--><!--/colorc-->
    >
    > That's Unix (and presumably Linux) behavior. Those systems have the
    > concept of a home directory for each user. Windows doesn't have that
    > concept, and AFAIK, using CD without any destination does nothing.
    >
    > --
    > Tim Slattery
    > MS MVP(Shell/User)
    > Slattery_T@bls.gov
    > <!--colorc--><!--/colorc-->

    CD\ takes you back to the root directory.
     
  15. Tim Slattery

    Tim Slattery Guest

    "Ian D" <taurus@nowhereatall.com> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    >"Tim Slattery" <Slattery_T@bls.gov> wrote in message
    >news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...<!--coloro:green--><span style="color:green <!--/coloro-->
    >> ray <ray@zianet.com> wrote:
    >><!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >>>On Sun, 27 Sep 2009 14:52:01 -0700, viensdansmavie wrote:
    >>>
    >>>> what is this command cd .
    >>>> it is not give a error message and it doesn't anything. what is this cd
    >>>> and one point cd .
    >>>
    >>>'cd' is 'change directory'.
    >>>'cd' changes to home directory.<!--colorc--><!--/colorc-->
    >>
    >> That's Unix (and presumably Linux) behavior. Those systems have the
    >> concept of a home directory for each user. Windows doesn't have that
    >> concept, and AFAIK, using CD without any destination does nothing.
    >>
    >> --
    >> Tim Slattery
    >> MS MVP(Shell/User)
    >> Slattery_T@bls.gov
    >> <!--colorc--><!--/colorc-->
    >
    >CD takes you back to the root directory. <!--colorc--><!--/colorc-->

    Sure, because \ is the name of the root directory.

    --
    Tim Slattery
    MS MVP(Shell/User)
    Slattery_T@bls.gov
     
  16. Tim Slattery

    Tim Slattery Guest

    ray <ray@zianet.com> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >Actually, using CD on *nix generally generates a 'command not found'
    >error.<!--colorc--><!--/colorc-->

    Almost missed that one. Unix systems are case sensitive, you have to
    type the command in lower case.

    cd

    --
    Tim Slattery
    MS MVP(Shell/User)
    Slattery_T@bls.gov
     
  17. On Mon, 28 Sep 2009 09:33:51 -0400, Tim Slattery <Slattery_T@bls.gov> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >viensdansmavie <viensdansmavie@discussions.microsoft.com> wrote:
    ><!--coloro:green--><span style="color:green <!--/coloro-->
    >>what is this command cd .
    >>it is not give a error message and it doesn't anything.
    >>what is this cd and one point cd .<!--colorc--><!--/colorc-->
    >
    >"cd" is "change directory". "." means the current directory, and ".."
    >means the parent directory. So "cd ." means "change to the current
    >directory". Since you're already there, that means you've told the
    >machine to do nothing and that's what it's doing.<!--colorc--><!--/colorc-->
    cd , cd ., cd, do nothing on windows [vista]
    cd.., cd .. steps backwards up the path tree by one directory.
    cd\ all the way to the root.

    Displays the name of or changes the current directory.

    CHDIR [/D] [drive:][path]
    CHDIR [..]
    CD [/D] [drive:][path]
    CD [..]

    .. Specifies that you want to change to the parent directory.

    Type CD drive: to display the current directory in the specified drive.
    Type CD without parameters to display the current drive and directory.

    Use the /D switch to change current drive in addition to changing current
    directory for a drive.

    If Command Extensions are enabled CHDIR changes as follows:

    The current directory string is converted to use the same case as
    the on disk names. So CD C:\TEMP would actually set the current
    directory to C:\Temp if that is the case on disk.

    CHDIR command does not treat spaces as delimiters, so it is possible to
    CD into a subdirectory name that contains a space without surrounding
    the name with quotes. For example:

    cd \winnt\profiles\username\programs\start menu

    is the same as:

    cd "\winnt\profiles\username\programs\start menu"

    which is what you would have to type if extensions were disabled.
     
  18. "Gordon" <gordonbparker@yahoo.com> wrote in message
    news:#$nmfJFQKHA.1796@TK2MSFTNGP02.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >
    > "ray" <ray@zianet.com> wrote in message
    > news:7ic2t4F2t9b43U116@mid.individual.net...<!--coloro:green--><span style="color:green <!--/coloro-->
    >> On Mon, 28 Sep 2009 15:52:06 +0100, Gordon wrote:
    >><!--coloro:darkred--><span style="color:darkred <!--/coloro-->
    >>> "Tim Slattery" <Slattery_T@bls.gov> wrote in message
    >>> news:3re1c5d5tpt00eq5398tds87avafs7kijt@4ax.com...
    >>>>
    >>>> That's Unix (and presumably Linux) behavior. Those systems have the
    >>>> concept of a home directory for each user. Windows doesn't have that
    >>>> concept, and AFAIK, using CD without any destination does nothing.
    >>>>
    >>>>
    >>> CD and CD. do nothing on Linux, either.<!--colorc--><!--/colorc-->
    >>
    >> Actually, using CD on *nix generally generates a 'command not found'
    >> error.<!--colorc--><!--/colorc-->
    >
    > Well, to be pedantic, yes it does!<!--colorc--><!--/colorc-->

    Err - Are you sure? Err?
     
  19. On 9/27/09, ray posted:<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > On Sun, 27 Sep 2009 14:52:01 -0700, viensdansmavie wrote:<!--colorc--><!--/colorc-->
    <!--coloro:blue--><span style="color:blue <!--/coloro--><!--coloro:green--><span style="color:green <!--/coloro-->
    >> what is this command cd .
    >> it is not give a error message and it doesn't anything. what is this cd
    >> and one point cd .<!--colorc--><!--/colorc--><!--colorc--><!--/colorc-->
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > 'cd' is 'change directory'.
    > 'cd' changes to home directory.<!--colorc--><!--/colorc-->

    cd without arguments prints the current directory path.
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > 'cd .' changes to the current directory - i.e. where you alread are - not
    > very useful.
    > 'cd ..' changes to the parent directory - i.e. one level up.<!--colorc--><!--/colorc-->

    --
    Gene Bloch 650.366.4267 lettersatblochg.com
     
  20. +Bob+

    +Bob+ Guest

    On Mon, 28 Sep 2009 20:57:31 -0700, Gene E. Bloch
    <letters@someplace.invalid> wrote:
    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    >cd without arguments prints the current directory path.<!--colorc--><!--/colorc-->

    You can't post in here without starting an argument
     

Share This Page