In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how batch bat implements the archiving of Internet cafes. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Batch processing to realize Internet cafe archiving
The code is as follows:
@ echo off
Color 0a
Cls
Set path =\\ game\ upload $
Echo. Checking to see if the save area is connected.
@ net use J: "% path%"
If exist J:\ goto nno
The end of echo is connected to the storage area, please contact the network manager.
Pause > nul
Exit
: nno
@ net use / del J: > nul
: koko
Cls
Echo, please enter your account number and enter! If you do not have an account number, please create a new one below and press enter. Please keep in mind when the account number is established. So that you can login and use it next time.
Echo
Set/p user name = user name:
Echo
If user name geq 1 goto start
Echo MSGBox "user name cannot be a special symbol, please re-enter it!", 48, "error prompt:" > nos.vbs & & call nos.vbs & & del nos.vbs & & goto koko
: start
Set user name | findstr "\" > nul
Set search=% user% > nul
Echo is validating user "username"
Echo, please wait a moment.
If exist% path%\% username% goto pass > nul
If not exist% path%\% username% goto md > nul
: pass
Rem password authentication
Set errorlevel= > nul
The user echo → "% username%" already exists, please enter your password:
Echo
Set/p password = password:
If password geq 1 goto yes
Echo MSGBox "cannot use special symbols, please re-enter!", 48, "warm Tip:" > nos.vbs & & call nos.vbs & & del nos.vbs & & call% 0
: yes
Set password | findstr "\" > nul
Set pass=% password% > nul
If errorlevel=1 cls & & echo MSGBox "password cannot be empty. Please re-enter it! ^ _ ^", 48, "warm Tip:" > kong.vbs & & call kong.vbs & & del kong.vbs & & call% 0
If exist% path%\% username%\ pass\% password% goto login > nul
If not exist% path%\% username%\ pass\% password% echo MSGBox "you entered the wrong password! please re-enter it!" , 48, "warm reminder:" > run.vbs & & call run.vbs & & del run.vbs & & call% 0
: login
Echo MSGBox "Congratulations ~! password verification is successful! welcome to login! * * Please do not upload Trojan virus! thank you for your cooperation! * * ^ _ ^", 48, "warm Tips:" > ys.vbs & & call ys > nul & & del ys.vbs
Cls
Echo, please wait a moment.
Echo is opening the [save area] for you.
NET USE u: / DELETE / YES > nul
Net use u:% path%\% username% / YES > nul
@ explorer.exe u:\
Exit
: md
The echo user name does not exist. Do you want to create a new user?
Echo.
Echo A: create new user B: re-enter
Echo.
Set / p tw= > nul
If "% tw%" = = "a" goto yesok
If "% tw%" = = "A" goto yesok
If "% tw%" = = "b" goto koko
If "% tw%" = = "B" goto koko
: yesok
Set errorlevel= > nul
Echo Please set a password for your new user:
Echo
Echo.
Set/p password = password:
If password geq 1 goto oks
Echo MSGBox "cannot use special symbols, please re-enter!", 48, "warm Tip:" > run.vbs & & call run.vbs & & del run.vbs & & goto yesok
: okss
Set / p password 0 = Please enter it again:
If "% password 0%" = "% password%" goto okss
Echo MSGBox "your two passwords are different, please re-enter!", 48, "error prompt:" > no.vbs & & call no.vbs & & del no.vbs & & goto yesok
Goto: yesok
: okss
Set password | findstr "\" > nul
Set pass=% password% > nul
If errorlevel=1 cls & & echo MSGBox "password cannot be empty. Please re-enter it! ^ _ ^", 48, "warm Tip:" > run.vbs & & call run.vbs & & del run.vbs & & call% 0
Md% path%\% username% > nul
Md% path%\% username%\ pass
Attrib + h + s% path%\% username%\ pass
Attrib + h + s% path%\% user name%
Md% path%\% username%\ pass\% password%
Echo MSGBox "Congratulations ~! you have become a new user of the [storage area] of this Internet bar. Put your information in it as soon as possible! * _ ^", 48, "warm Tips:" > run.vbs & & call run.vbs & del run.vbs > nul
Cls
Echo, please wait a moment.
Echo is opening the [save area] for you.
NET USE u: / DELETE / YES > nul
Net use u:% path%\% username% / YES > nul
@ explorer.exe u:\
Exit
Thank you for reading! On "batch bat how to achieve Internet bar archiving" this article is shared here, 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, you can share it out for more people to see it!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.