Sign in to follow this  
Xabbu

DOS command help?

Recommended Posts

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
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
ah good old dos, brings back memories. dont think ive got anything more to add apart from IIRC you dont have to just have "cd stuff" you can go up more than one at a time "cd stuff\morestuff\evenmorestuff"

also just typing the drive name and a : will take you to that root eg. a: or c:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this