In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to use batch processing to achieve Internet cafe preservation area, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article. Let's learn about it!
The code is as follows:
@ echo off
Color 0a
Cls
Set path =\\ game\ xz$
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 ┏━━┓
Echo ┃ Ben Internet Bar Dear customer: ┃
Echo ┃ ┃
Hello, echo ┃! ┃
Echo ┃ you need to save pictures, documents, software, game archives. Waiting for information? ┃
Echo ┃ ┃
Echo ┃ because our Internet bar computer is equipped with a restore system, your data will disappear after reboot. ┃
Echo ┃, would you please put the materials you need to save in the [save area] prepared for you in this Internet bar? ┃
Echo ┃ ┃
Echo ┃ ┃
Echo ┃ Note: the data in the [save area] will not be restored, and any computer can access ┃.
Echo ┗━━┛
Echo.
Echo.
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 Tip:"
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
: oks
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
The above is all the contents of the article "how to use batch processing to achieve Internet cafe preservation area". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.