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:
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.
- ► 2013 (13)
- ► 2012 (23)
- ► 2011 (23)
- ► 2010 (60)
- ► 2009 (60)
- ► 2008 (25)
- 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 featu...
- 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 Ch...
- ▼ March (10)