© 1991 Brian R. Page Blast Off With BASICAppendix B: DOS Command SummaryCHDIRPURPOSEChanges the current directory. SYNTAXCHDIR directory EXPLANATION directory specifies the name of a disk directory. The name may be begin with a backslash (\) indicating the directory is a subdirectory of root.
COPYPURPOSECreates a copy of a file. SYNTAXCOPY input output EXPLANATIONThe file named as input is copied to the file named as output. If a file by the same name as that specified as output already exists, its contents are destroyed by the COPY operation. Input and output are specified as file paths.
DIRPURPOSEDisplays the contents of the current directory. SYNTAXDIR /P DIR /W EXPLANATION/P causes DOS to pause after filling a complete screen. /W causes DOS to list files across the width of the screen.
ERASEPURPOSEDeletes DOS disk files. SYNTAXERASE file path EXPLANATIONfile path may contain the disk drive identifier, directory name, and file name.
FORMATPURPOSEPrepares a disk for DOS to use. SYNTAXFORMAT disk id EXPLANATIONdisk id specifies the letter of the disk drive. WARNING: Formatting a disk destroys all data on the disk.
MKDIRPURPOSECreates a new disk directory. SYNTAXMKDIR directory EXPLANATIONdirectory specifies a directory name. To indicate that a new directory is a subdirectory from the root directory, the name should begin with a backslash (\).
RMDIRPURPOSERemoves a disk directory. SYNTAXRMDIR directory EXPLANATIONdirectory specifies a directory name to be remove. Directories must be empty before they can be removed. The current directory cannot be removed.
TYPEPURPOSEDisplay the contents of a file on the screen. SYNTAXTYPE file path EXPLANATIONfile path may include the disk drive identifier, directory, and the file name.
|