DOS Coding Examples
We found these MS DOS examples to be very helpful:
How do I get to DOS on Windows XP?
Answer: Click on the "Start" button,
select the "Run" option, type in "cmd"
How do I get the names of files in a directory into a MS Word or Excel document without writing them by hand?
Answer: This command prints the file names of files in a directory,
into a file called "filelisting.txt" or whatever you
happen to name it.
code: dir *.* /b >>fileListing.txt
How do I switch directories / folders in DOS?
Answer: use the "cd" command, here is an example to change to the directory from the root "c:" to "c:\WINDOWS\"
code: cd WINDOWS
How do I view the contents of a directory?
Answer: use the "dir" command.
code: dir
use cd (folder name) to change directory's
use cd .. to move up to the parent directory
use cd \ to move to root of the directory
use H: etc to move to new drive
|