Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 21st, 2011, 10:43 AM
dotancohen's Avatar
dotancohen dotancohen is offline
המבין יבין
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2001
Location: Haifa
Posts: 2,084 dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 17 h 52 m
Reputation Power: 1484
Send a message via ICQ to dotancohen Send a message via AIM to dotancohen Send a message via MSN to dotancohen Send a message via Yahoo to dotancohen
How to use cd command in Window

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
__________________
. . . What is Firefox?
. . . . . . What is Linux?
. . . . . . . . . . . What is Love?

Reply With Quote
  #2  
Old July 21st, 2011, 11:28 AM
JClasen JClasen is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2007
Posts: 1,513 JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 7 h 10 m 22 sec
Reputation Power: 1422
1) You could add such a feature with a cd alias
2) "cd %HOMEPATH%" or "cd $Home" might work under some circumstances.
3) Take a look at pushd and popd.

Regards, Jens
Comments on this post
dotancohen agrees: Thank you!

Reply With Quote
  #3  
Old July 21st, 2011, 11:54 AM
dotancohen's Avatar
dotancohen dotancohen is offline
המבין יבין
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2001
Location: Haifa
Posts: 2,084 dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 17 h 52 m
Reputation Power: 1484
Send a message via ICQ to dotancohen Send a message via AIM to dotancohen Send a message via MSN to dotancohen Send a message via Yahoo to dotancohen
Quote:
Originally Posted by JClasen


Thanks, Jens. I've heard of Powershell, it looks like the standard Windows CLI is too anemic and I really should be using Powershell

Quote:
2) "cd %HOMEPATH%" or "cd $Home" might work under some circumstances.


Nice, thanks! It is a lot to type, though.

Quote:
3) Take a look at pushd and popd.


That is a bit limited but I suppose that it will do. I'll see if I might be able to define aliases in Powershell.

Thanks!

Reply With Quote
  #4  
Old July 27th, 2011, 06:59 AM
JClasen JClasen is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jun 2007
Posts: 1,513 JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level)JClasen User rank is General 7th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 7 h 10 m 22 sec
Reputation Power: 1422
1) Will only go one directory up in the directory tree. If you didn't came from there, the previous directory is sth. else.

Example:
Code:
c:\myDirectoy>cd \just\another\directory
c:\just\another\directory>cd ..
c:\just\another>


cd - would allow him to come back to c:\myDirectory.

2) That would only work, if the user directories really reside in c:\users. That's not always the case.

Regards, Jens

Reply With Quote
  #5  
Old July 27th, 2011, 09:20 AM
dotancohen's Avatar
dotancohen dotancohen is offline
המבין יבין
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 2001
Location: Haifa
Posts: 2,084 dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level)dotancohen User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 17 h 52 m
Reputation Power: 1484
Send a message via ICQ to dotancohen Send a message via AIM to dotancohen Send a message via MSN to dotancohen Send a message via Yahoo to dotancohen
Quote:
Originally Posted by JClasen
1) Will only go one directory up in the directory tree. If you didn't came from there, the previous directory is sth. else.

Example:
Code:
c:\myDirectoy>cd \just\another\directory
c:\just\another\directory>cd ..
c:\just\another>


cd - would allow him to come back to c:\myDirectory.

2) That would only work, if the user directories really reside in c:\users. That's not always the case.

Regards, Jens


What he said!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > How to use cd command in Window

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap