See ???Variables and the Environment,???
later in this chapter.
exit
Closes the Command Prompt window. In most situations, you can just
click the close button ?— on the upper-right corner of the window, but
the exit command works just as well.
md foldername
This command creates a new directory (md=make directory) with the
name foldername. The command will have no effect if there??™s already a
directory or file with the same name.
move filename destination
Is the same as copy, except that the file is moved instead of copied. Type
move /? for additional options. (Unlike dragging and dropping in Windows
Explorer, this command moves files unconditionally.)
rd foldername
This command deletes an empty directory (rd=remove directory) with
the name foldername. The command will have no effect if the directory
is not empty. To delete a directory and all of its contents, use deltree.
ren oldfilename newfilename
Renames a file to newfilename. This is especially useful, because you can
use the ren command to rename more than one file at once??”something
Explorer doesn??™t let you do. For example, to rename hisfile.txt to
herfile.txt, type ren hisfile.txt herfile.txt. To change the extensions
of all the files in the current working directory from .txt to .doc, type ren
*.txt *.doc. Type ren /? for additional options.
set [variable=[string]]
When used without any arguments, displays a list of active environment
variables (described in ???Variables and the Environment,??? later in
this chapter).
Pages:
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774