Re: dos command change directory cd .

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 28 Sep 2009 09:33:51 -0400, Tim Slattery <Slattery_T@xxxxxxx> wrote:

viensdansmavie <viensdansmavie@xxxxxxxxxxxxxxxxxxxxxxxxx> 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". "." 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.
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.
.



Relevant Pages

  • Re: HELP! Need to unlock an old Doc and Settings personal folder after rebuild.
    ... as the parent directory is locked and I get an 'Access denied' ... my girlfirends old files, but not mine?!? ... error message when recovering data from the old folders. ... If you have already isolated the cause and are happy that the disk is ...
    (microsoft.public.windowsxp.general)
  • Re: mkdir() problems
    ... What are the permissions on the parent directory? ... http://www.andyhsoftware.co.uk/space:: disk and FTP usage analysis tool ...
    (comp.lang.php)