For example, type a: to switch to the floppy drive.
cls
Clear the display and empty the buffer (the history of output accessible
with the scroll bar).
copy filename destination
Copies a file to another directory or drive, specified by destination.
This is the same as dragging and dropping files in Explorer, except that
you use the keyboard instead of the mouse. For example, to copy the
file myfile.txt (located in the current working directory) to another drive,
type copy myfile.txt g:\. Type copy /? for additional options.
del filename
Deletes a file. For example, to delete the file myfile.txt, type del myfile.
txt. This is not exactly the same as deleting a file in Windows, because
the file will not be stored in the Recycle Bin. The advantage of the DOS
variant is that you can more easily and quickly delete a group of files,
such as all the files with the .tmp extension: del *.tmp. Type del /? for
additional options.
dir name
Displays a listing of all the files and directories in the current working
directory. Use cd to change to a different directory, or type dir c:\
files to display the contents of C:\Files without having to first use the
cd command. Type dir /p to pause the display after each page, useful
for very long listings (or just enlarge the window). You can also specify
wildcards to filter the results; type dir *.tmp to display only files
with the .tmp filename extension. Type dir /? for additional options.
Command Prompt Scripting | 555
Scripting and
Automation
echo text
Displays the text, text, on the screen.
Pages:
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773