computer help index
 
 
Search:
"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,240 tips!

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>


 
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.

RSS Feeds - Subscribe!
 

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Subscribe'.
 



( sample / details ) ( opt-out instructions )
 


 Free Offer! - Subscribe to the MalekTips computer help list and be one of the first to get new computer tips, articles, and download links! ( privacy policy )  ( opt-out instructions )
This page and its contents are copyright
©1997 - 2008 Envision Programming. ( copyright/disclaimer )

Home | Free Computer Help Newsletter! | Windows | Web Development | DOS and Batch Files | Removing Spyware
Digital Camera and Photography | Computer and Internet | Software | Microsoft Word
Computer Articles | About | Contribute a Tip | Link To Us! | Computer and Technology Links
RSS Feeds |  Contact Us | Advertising | Privacy Policy | Computer Help Forums