How does the Win7 system create batch files?
Method One:
1, first we can create a "text document" in any location;
2, double-click to open this document, the "bat" command input: (here to clean up the system garbage command for example)
@echo off
ECHO is clearing the system garbage file, please wait ...
del/f/s/q%systemdrive%*.tmp
del/f/s/q%SYSTEMDRIVE%*._MP
del/f/s/q%systemdrive%*.log
del/f/s/q%systemdrive%*.gid
del/f/s/q%systemdrive%*.chk
del/f/s/q%systemdrive%*.old
del/f/s/q%windir%*.bak
del/f/s/q%windir%prefetch*.*
RD/S/q%windir%temp & MD%windir%temp
del/f/q%userprofile%cookies*.*
del/f/q%userprofile%recent*.*
del/f/s/q "%userprofile%local settingstemporary Internet files*.*"
del/f/s/q "%userprofile%local settingstemp*.*"
del/f/s/q "%userprofile%recent*.*"
echo clearance System, LJ, complete!
Echo. & Pause
3, click on the upper left corner of the "file"-"Save As", will "save the type" modified to "all Files", the file name modified to "Xitonghe.bat" (here is the emphasis is the suffix, must be ". bat" only) then click Save;
4, in use when it is best to right-click on the batch, select "Run as Administrator" can be.
Method Two:
1, open "Computer", click "Organization"-"folder and search Options";
2, in the folder option to click "View" tab, in the "Advanced settings" to ensure that "hide the known file class extension" is not checked, click Apply and determine;
3, the reference Method step 1, 2 to enter the command into the text document, click the Close button, in the pop-up box select "Save";
4, the "new text document. txt" Right click, select "Rename", the suffix name "txt" modified to "bat" press ENTER, in the Pop-up warning box click "Yes" can be.