Command: Rmdir?rd?
Function? Deletes a directory. The deltree command in Windows http://www.aliyun.com/zixun/aggregation/19058.html >2003 has been superseded by the RD command.
Parameters: Under Windows 2003, with the parameter "/S", you can delete the specified directory and all subdirectories, as well as all the files that are included, and then run in quiet mode with the parameter "/q" (that is, you cannot delete the directory without confirming it, but you cannot delete the directory that contains the hidden
Example: We modify the registry to illustrate how to automatically purge files from the temp directory when the computer starts.
① Create a new batch program named Deltemp.bat that contains the following command line:
Rd c:\windows\temp/s/q
MD c:\windows\temp
Save this batch file in the C: Packing directory.
② Open Registry Editor, expand the [HKEY_CURRENT_USER \Software\Microsoft\Windows NT\Current Version\windows] branch, and right-click (if not, create a new one) in the right window. Load project, select Modify, enter "D:\deltemp.bat" under Value data in the open window, and then exit Registry Editor.
Command: Expand
Function: Expand one or more compressed files. This command is used to retrieve compressed files from the installation disk and repair some system files.
Syntax: Expand source [/f:files] [destination] [/d] [y]
Parameters: source--Specifies the file to expand. Source can consist of a drive letter and a colon, a directory name, a file name, or a combination. You cannot use wildcard characters.
/f:files--If the source file contains more than one file, specify the name of the file you want to extract, you can use wildcard characters for the file you want to extract.
destination--Specifies the destination directory and/or file name for extracting files or individual files.
/d--lists the files contained in the CAB file without expanding or extracting them.
/y--does not appear when you expand or extract a file.
Instance: Extracts the Msgame.sys file from the driver CAB file on the installation CD (assuming D disk) and copies it to C:\Windows\System\Drivers.
Expand D:\i386\driver.cab \f:msgame.sys C:\windows\system\drivers