This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

Windows 2000 and DOS - Create an Extended CD Command

SUMMARY: Create a change directory command in Windows 2000 that works across drives. This works for Windows XP, too.

The Windows 2000 DOS prompt's CD command lets you change directories on the current drive. You may not know that if you add the /d parameter, you can actually change directories to one on a different drive. Since this parameter is easy to forget, why not create a turbo-charged "change directory" command that automatically switches drives, if necessary?

To create the new "Change Directory and Drive" command, create a batch file called "cdd.bat" in your main Windows directory with the following line:

@cd /d %1 %2 %3 %4 %5 %6 %7 %8 %9

Now, you can do the following with the new CDD command:

C:\>cdd d:

D:\>cdd c:\documents and settings

C:\Documents and Settings>cdd d:\backups

D:\Backups>


 

 

Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Windows 2000 and DOS - Create an Extended CD Command

Standard disclaimer applies - read http://malektips.com/disclaim.html