Para said Dos③

Source: Internet
Author: User
Keywords Old Tree new Flower contains deletes registers wildcard character
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.