DOS command help?
"cd" (change directory)
If your at
C:
and there's a directory called "Stuff" you type
"cd Stuff"
which brings you to
C:\Stuff
If your at
C:
and there's a directory called "Stuff" you type
"cd Stuff"
which brings you to
C:\Stuff
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.
will take you up one level (to the parent folder). I only say this because it's incredibly useful and not always common knowledge.
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.
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
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
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
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement