Jump to content
  • Advertisement
Sign in to follow this  
Xabbu

DOS command help?

This topic is 5157 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

Advertisement
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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!