Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Sample analysis using bat batch processing

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report