Get the App
SLTechnology News&Howtos  ›  Development  › 

Sample analysis using bat batch processing

Shulou Source: shulou.com Published: 2022-06-03 08:30:38 10月03日 Update

This article will explain in detail the example analysis on the use of bat batch processing. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Delete the default share (don't save it as bat file in the start menu): net_share_delete.bat, another way to delete the default share

The code is as follows:

Net share ipc$ / delete

Net share admin$ / delete

Net share c $/ delete

Net share d$ / delete

Net share e$ / delete

...

Login to the local area network machine shortcut (the other machine has a password and is 2000 or more systems) nethood.bat

The code is as follows:

Net use\\ 192.168.0.20 [password] / user: [user name]

Explorer\\ 192.168.0.20

Cyclic newfolder.bat in batch processing

The code is as follows:

@ ECHO OFF

SET / A counter=0

: top

SET / A counter=%counter%+1

ECHO run% counter%

Md folder%counter%

If% counter% LSS 10 GOTO: top

ECHO Run complete

Delete files in a temporary folder (window 2000 or above) del_tempfile.bat

The code is as follows:

Cd / d temp%

Del *. * / s / Q

Resolve the problem that IE cannot open the link in the new window, close all ie windows and run the bat iedll.bat of the following

The code is as follows:

Regsvr32 urlmon.dll

Regsvr32 actxprxy.dll

Regsvr32 shdocvw.dll

Regsvr32 oleaut32.dll

Rename the file renameIEtempfile.bat copied from the temporary IE folder (files copied from Temporary Internet Files will add [1] or [n] to the file name, and you can quickly rename them with this bat file)

The 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]. *?

This is the end of this article on "sample analysis of using bat batches". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Files code articles examples analysis content passwords folders more machines systems running good practical operating systems each other local area local area network quick copy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi macOS MySQL Linux Microsoft