List files widthwise:
List one page at a time:
List the contents of the parent directory:
Send the directory listing for the current directory to a file called "directory.txt":
Clear the screen:
Delete "file.ext":
Delete all files in a directory (dangerous!):
Copy a file named "tron.exe" to floppy drive b: :
Go to the mogwai\spike directory (directory = folder):
Return to root directory:
Go up one directory:
Make a directory (folder) called "MICRONAUT":
Delete the directory called "XEVIOUS": (this only works for empty directories).
Delete the full directory "XEVIOUS", and all of its sub-directories: (DOS 5+)
----------------------------------------------------
Copy all files from the subsubdirectory called "FOOD" to the disk in A:, including all (S)ubdirectories, all (E)mpty subdirectories, (M)ark all files as copied, so that the user can put a new blank disk into the drive when the first one fills up, and continue where s/he left off. Re-issue the command by pressing F3 and ENTER:
Note: The '/m' switch is only for spanning across things like floppy disks. Do not use the '/m' switch if you're xcopying to a drive that is big enough to hold all of the files. Why? Because if you decide that you don't like the location that the files were copied to, delete the copies, and re-issue the xcopy command to a different location or directory, xcopy will only copy the folders, and will NOT copy the files again. The reason for this is that the files were already copied once, and have been marked as copied. Xcopy will not copy them again, unless you leave the '/m' option off. In such a case, you'd be best to use
If you're already in the directory that you want to copy files from, just issue the command, beginning with the period (wildcard shorthand). Let's say you were already in the "COINOP\JOUST" directory, and you wanted to copy all of the files in this directory to the disk in drive A:. You'd type:
Check what version of DOS you're using:
-----------------------
Format the disk in A:
Format the disk in A: as a high density disk, transferring (S)ystem files to it, (U)nconditionally formatting the disk, and allowing you to give the disk a (V)olume name.
------------
Format a low-density 3.5" disk in high-density drive A: (720K):
Format a high-density 3.5" disk in high-density drive A: (1.44MB):
Format a low-density 3.5" disk in low-density drive A: (720K):
Format a low density 5.25" disk in high-density drive A: (360K):
Format a high-density 5.25" disk in high-density drive A: (1.2MB):
-----------------
Lock a file and make it undeleteable:
Unlock a file:
Note: Some files (like the registry files) will need to be made usable by issuing ALL FOUR arguments. I.e.
Uncompress a file that has been compressed with Microsoft Compress:
Load the DOS 5+ text editor:
Solving memory problems in DOS:
- Format a blank diskette, using the FORMAT A:/S command.
e.g.) COPY CONFIG.SYS A:
- Write-protect the disk and store it in a safe place.
- Load the Config.sys file (the one on the hard drive) into a text editor or word processor.
- Look for lines in the Config file that are similar to the lines below. Modify the lines to match
the following:
device=c:\dos\himem.sys
List files on current drive:
dir
dir/w
dir/p
dir ..
dir >directory.txt
cls
del file.ext
del *.*
copy tron.exe b:
cd mogwai\spike
cd\
cd..
md micronaut
rd xevious
deltree xevious
EXTERNAL COMMANDS (these are executable files):
Undelete a file called "Bubble.bas": (DOS 5)
undelete bubble.bas
XCOPY - A more powerful copy command:
xcopy c:\houses\tables\food. a:/s/e/m
xcopy c:\houses\tables\food. d:/s/e
or
xcopy c:\houses\tables\food *.* d:/s/e
xcopy . a:
See how much room there is on the current drive:
chkdsk
ver
format a:
format a:/s/u/v
format a:/n:720
or
format a:/n:9/t:80
format a:
format a:
format a:/n:360
format a:
attrib +r file.ext
attrib -r file.ext
attrib -r -a -s -h file.ext
expand ansi.sy_ c:\dos\ansi.sys
This expands the file "ansi.sy_" into one called "ansi.sys". You need to know (or at least guess) the last letter of the file's extension, in order to use this command.
edit
-----------------
-----------------
Step 1:
- Copy the following files to the diskette:
Config.sys and Autoexec.bat
Step 2:
dos=high,umb
device=c:\dos\emm386.exe 512 ram
files=10
shell=c:\dos\command.com c:\dos\ /p
stacks=0,0
-----------------------------