Good examples of bat

Time:2021-5-7

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  \\ 192.168.0.20  [ [password]  / User: [user name]  
explorer \\192.168.0.20 

Loop newfolder.bat in batch processing

Copy codeThe code is as follows:
@ECHO OFF 
SET /A counter=0 
:top 
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:https://github.com/ngrx Ngrx mainly has four modules, which arengrx/store, […]