3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Basics of Batch Files

Step 2CD and CHDIR Commands

CD and CHDIR Commands
The CD and CHDIR Commands are the commands that will take you where you want to go! But why two different commands?

Let me explain!

The CD command is used to get from one place to a completely seperate place altogether. Meaning not a subfolder, or parent folder.

To use the CD command, one must type the whole address of the directory you wish to visit.

I.E.:

CD C:\Documents and Settings\Neo\My Documents

takes me to my My Documents folder in one quick step.

The CHDIR command is used to get reach places close by without having to type in the complete address over and over.

I.E.:

CHDIR My Music

Takes me to my My Music folder.
If I were to use CD, I would have had to type

CD C:\Documents and Settings\Neo\My Documents\My Music

And that can get quite annoying after a while.

but how does one go Up a folder with the CHDIR?
You simply add two periods after the CHDIR command, and it will take you up!

CHDIR ..

Thus, with CD and CHDIR, your computer can be explored thoroughly, and easily! And when coupled with the DIR command, nothing is hidden!

EDIT:
I have just discovered that the CHDIR command us unneccessary, and the CD command can be used to access sub folders, and parent folders just as easily. But since this may not be true on older machines, I will still keep the CHDIR command up!
« Previous StepDownload PDFView All StepsNext Step »
4 comments
Apr 5, 2008. 6:56 AMmudkip4112 says:
mine keeps saying "path not found". what am i doing wrong?
Jun 24, 2009. 8:58 PMwill421 says:
Where are you going?
May 30, 2009. 11:35 AMiHackAlot says:
mine 3
Apr 6, 2009. 7:11 PMwax54 says:
idk mine too lolz :'(

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
5
Author:Neodudeman