Dealing with DOS - Final Part


© Chris Cruickshank

This is the final part of "Dealing with DOS." This article is a summary of the commands of the previous articles. You might find it useful to print this and keep it for reference. (But then you always print my articles anyway - don't you? ;-). If you have just arrived at this article, you may need to read the previous articles as this article assumes you have read them.

Commands

DIR - Display the contents of a folder. Will include file names and any sub folders that are in the specified directory. On its own, DIR will display the contents of the current directory. Don't forget, adding the "/S" switch to DIR will cause it to search sub directories.

CD Change Directory. Used to move around your system. You can reach the root directory quickly by issuing CD \. Full path names will always start with the back slash character "\" as they are specified from the root directory. Relative path names never start with the back slash and are relative to your current directory.

COPY - Copy source file to target file. Providing the source file is in another folder, the target file can be omitted. It will then be copied to the current folder with the same name as the source file. You can rename files using the COPY command (although be careful that you don't overwrite a file).

DEL - Delete file(s). You can use the wildcards "*" and "?" to delete more than one file at a time. Therefore, DEL MYFILES.* will delete all files that start MYFILES and have any ending. The "?" is used to denote a single character, so DEL MYFILE??.* would remove FILE01, FILE02, ... but wouldn't delete FILE100 as it has 3 characters after MYFILE.

TYPE - Display the contents of an ASCII (text) file. Don't try this command with a .EXE file - it will mess your display up!

EDIT - Edit (change) the contents of an ASCII text file. EDIT is the DOS version of Windows Notepad.

MKDIR - Make a new directory. Create a sub folder in the current directory.

RMDIR - Remove a directory. Note that the directory must be empty - that is, must NOT have any files or sub folders contained within.

FORMAT - Format (prepare) a disk ready for data storage. If the disk contains data (either a floppy disk or a hard disk), the existing data will be lost. Use this command with extreme care! You can transfer the system to a floppy disk (to make it bootable) by adding the /SYS option.

Go To Page: 1 2 3


The copyright of the article Dealing with DOS - Final Part in PC Support is owned by . Permission to republish Dealing with DOS - Final Part in print or online must be granted by the author in writing.

Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo