• Advertisement
Sign in to follow this  

DOS command help?

This topic is 4978 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can anyone tell me what the DOS command is to change directories? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
"cd" (change directory)

If your at
C:
and there's a directory called "Stuff" you type
"cd Stuff"
which brings you to
C:\Stuff

Share this post


Link to post
Share on other sites
cd ..

will take you up one level (to the parent folder). I only say this because it's incredibly useful and not always common knowledge.

Share this post


Link to post
Share on other sites
Quote:
Original post by Thunder_Hawk
cd ..

will take you up one level (to the parent folder). I only say this because it's incredibly useful and not always common knowledge.


Oh, and cd \ takes you to the root of the drive, and in some versions of DOS cd ... takes you up two directories and cd .... goes up three.

Share this post


Link to post
Share on other sites
to open an directory you use cd <dir name> and to open a file you use just the name of the file when you're in the right directory.

Btw, there's also another thing some ppl don't know, ands thats the command "dir". This command will show you a full list of all files and directory's from the dir you're currently in.



Hope this helps

Share this post


Link to post
Share on other sites
If you have too many files on screen with a DIR command, try pausing after each screen with DIR /P or splitting it into columns with DIR /W - or both, DIR /P/W

Share this post


Link to post
Share on other sites
Quote:
Original post by benryves
If you have too many files on screen with a DIR command, try pausing after each screen with DIR /P or splitting it into columns with DIR /W - or both, DIR /P/W


You could also write:

dir | more

or

dir .ext

where ext is the file extension you are looking for

and, of course, you can combine the two

dir .ext | more


BTW the | more thing works on any command (including user-made programs) to split the output into pages of information. I use this a lot, especially in compilation scripts.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement