A Windows XP help forum. PCbanter

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 » PCbanter forum » Microsoft Windows XP » Security and Administration with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to use cd command in Windows



 
 
Thread Tools Display Modes
  #1  
Old July 21st 11, 04:54 PM
dotancohen dotancohen is offline
Registered User
 
First recorded activity by PCbanter: Dec 2005
Location: Haifa
Posts: 15
Default How to use cd command in Windows

Hi all, I'm a Linux user just starting to get the hang of Windows 7. How can one perform these functions with the Windows cd command:
1) Go back to the previous directory (cd - in Bash)
2) Go to the user's home directory (cd ~ in Bash)
3) Bookmark a directory (not built into bash, but cdargs or DerB can be added)

Thanks
Ads
  #2  
Old October 18th 11, 10:10 AM
dotancohen dotancohen is offline
Registered User
 
First recorded activity by PCbanter: Dec 2005
Location: Haifa
Posts: 15
Default

Quote:
Originally Posted by shimer View Post
The CD command is an internal command and is available in the below Microsoft operating systems.
‎Thank you Shimer. I am intimately familiar with the cd command in unix systems. My question was regarding specific use cases of the command in Windows. Thanks.
  #3  
Old October 28th 11, 12:06 PM
Techrupert Techrupert is offline
Registered User
 
First recorded activity by PCbanter: Oct 2011
Location: Philippines
Posts: 5
Default

Quote:
Originally Posted by dotancohen View Post
‎Thank you Shimer. I am intimately familiar with the cd command in unix systems. My question was regarding specific use cases of the command in Windows. Thanks.
Hi, hope this helps.

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.
  #4  
Old October 28th 11, 02:14 PM
dotancohen dotancohen is offline
Registered User
 
First recorded activity by PCbanter: Dec 2005
Location: Haifa
Posts: 15
Default

Thank you, Techrupert. The information that you posted is very informative, but it does not address the three questions posted in the OP.
  #5  
Old November 17th 21, 08:54 PM
nicksmith nicksmith is offline
Registered User
 
First recorded activity by PCbanter: Jun 2005
Posts: 14
Default

When I have any problem related to the computer I immediately contact bestpctips.com and a competent specialist helps me solve it. A specialist also advises how to avoid the appearance of permanent errors. The service is super and inexpensive!
 




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 Off
HTML code is Off






All times are GMT +1. The time now is 11:54 AM.


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