Thanks for Raymond Chen's recent blog message on changing directory to UNC path name, I have now discovered that the pushd is actually an enhanced version of XP's cd or Chdir command.
Often people wants to change to a directory on another drive and often people discovers that nothing happens because the person has forgotten to include the /d switch like this:
C:\Windows>cd /d d:\temp
Instead of doing this clumsy way, why not simply replace your cd command with pushd, like this:
C:\Windows>pushd d:\temp
This command essentially performs this command:
pushd . & cd /d d:\temp
The added bonus of using pushd to change directory is that you can use popd to return to your original folder.
Great idea and is extremely useful to create user friendly batch file.
A site devoted to discussing techniques that promote quality and ethical practices in software development.
Friday, March 16, 2007
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(80)
-
▼
March
(10)
- More on Delphi.Net's handling of "array of" parame...
- What do you call an MP3 player not supporting MP3?
- Good work around
- Delphi.Net generating .Net incompatible call conve...
- Nearly become another victim of Delphi.Net's feature
- An enhanced version of ChDir (or CD) command
- These are truly WOW
- Bridging the two cultures - unmanaged COM and .Net...
- Wasting a whole week because of some "Borland feat...
- Bug in Delphi.Net in handling class function of Char
-
▼
March
(10)
No comments:
Post a Comment