Good examples of bat


Here are several examples of bat files. I hope they will be useful to you. Modify them according to your needs.

Delete default share (save as bat file in start menu): Net_ share_ Delete. Bat, another way to delete the default share

Copy codeThe code is as follows:
net share ipc$ /delete 
net share admin$ /delete 
net share c$ /delete 
net share d$ /delete 
net share e$ /delete 

The shortcut to the LAN (the other machine has a password and is 2000 or above) nethood.bat

Copy codeThe code is as follows:
net   use  \\  [ [password]  / User: [user name]  
explorer \\ 

Loop newfolder.bat in batch processing

Copy codeThe code is as follows:
SET /A counter=0 
SET /A counter=%counter%+1 
ECHO   Run the second  % counter%   second  
md folder%counter% 
if %counter% LSS 10 GOTO :top 
ECHO Run complete 

Delete files in temporary folder (window)   2000 or above)   del_ tempfile.bat

Copy codeThe code is as follows:
cd /d %temp% 
del *.* /s /q 

To solve the problem that IE can’t open the link in the new window, close all IE windows and run the bat of the following content   iedll.bat

Copy codeThe code is as follows:
Regsvr32 urlmon.dll 
Regsvr32 actxprxy.dll 
Regsvr32 shdocvw.dll 
Regsvr32 oleaut32.dll 

Rename files copied from IE temporary folder   Rename ietempfile.bat (from temporary   Internet   Files will add [1] or [n] to the file name of the copied files. You can quickly rename them with this bat file.)

Copy codeThe code is as follows:
rename ?[1].* ?.* 
rename ??[1].* ??.* 
rename ???[1].* ???.* 
rename ????[1].* ????.* 
rename ?????[1].* ?????.* 
rename ??????[1].* ??????.* 
rename ???????[1].* ???????.* 
rename ????????[1].* ????????.* 
rename ?????????[1].* ?????????.* 
rename ??????????[1].* ??????????.* 
rename ???????????[1].* ???????????.* 
rename ????????????[1].* ????????????.* 
rename ?????????????[1].* ?????????????.* 
rename ??????????????[1].* ??????????????.* 
rename ???????????????[1].* ???????????????.* 
rename ????????????????[1].* ????????????????.* 
rename ?????????????????[1].* ?????????????????.* 
rename ??????????????????[1].* ??????????????????.* 
rename ???????????????????[1].* ???????????????????.* 
rename ????????????????????[1].* ????????????????????.* 
rename ?????????????????????[1].* ?????????????????????.* 
rename ??????????????????????[1].* ??????????????????????.* 
rename ???????????????????????[1].* ???????????????????????.* 
rename ????????????????????????[1].* ????????????????????????.* 
rename ?????????????????????????[1].* ?????????????????????????.* 
rename ??????????????????????????[1].* ??????????????????????????.* 
rename ???????????????????????????[1].* ???????????????????????????.* 
rename ????????????????????????????[1].* ????????????????????????????.* 
rename ?????????????????????????????[1].* ?????????????????????????????.* 
rename ??????????????????????????????[1].* ??????????????????????????????.* 
rename ???????????????????????????????[1].* ???????????????????????????????.* 
rename ????????????????????????????????[1].* ????????????????????????????????.* 
rename ?????????????????????????????????[1].* ?????????????????????????????????.* 
rename ??????????????????????????????????[1].* ??????????????????????????????????.* 
rename ???????????????????????????????????[1].* ???????????????????????????????????.* 

Recommended Today

Angular4 actual combat (4) ngrx

ngrx Ngrx is the state management library of angular, which is the same as react Redux and is extended from redux. The example of this demonstration is to control the global loading animation display of HTTP request service through the state management of ngrx. As follows: Ngrx address: Ngrx mainly has four modules, which arengrx/store, […]