|
| 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>
Add:
Del.icio.us |
Digg |
Furl |
My Yahoo!
Discuss This Tip
Print This Tip
Get E-Mail When New Tips are Online
Return to the Windows 2000 and DOS page. |