Batch Processing for Internet cafe Archiving

Source: Internet
Author: User

Batch Processing for Internet cafe Archiving

Copy codeThe Code is as follows: @ echo off
Color 0a
Cls
Set path =\\ game \ upload $

Echo. checking whether the storage zone is connected...
@ Net use J: "% PATH %"
If exist J: \ goto nno
Connect to the Save area at the end of echo. Please contact the network administrator.
Pause> nul
Exit
: Nno
@ Net use/del J:> nul
: Koko
Cls
Echo, enter your account and press Enter! If you do not have an account, create a new one below and press Enter. Remember to create an account. So that you can log on to use it next time.
Echo ---------------------------------------------------
Set/p username = Username:
Echo ---------------------------------------------------
If % username % geq 1 goto start
Echo MSGBox "user name cannot be a special symbol. Please enter it again! ", 48," error message: "> nos. vbs & call nos. vbs & del nos. vbs & goto koko
: Start
Set username | findstr "\ <% search % \>"> nul
Set search = % USER %> nul
Echo verifying user '% username % 』
Echo, please wait ........
If exist % PATH % \ % username % goto pass> nul
If not exist % PATH % \ % username % goto md> nul
: Pass
Rem password verification
Set errorlevel => nul
Echo → '% username %' this user already exists. Please enter your password:
Echo ---------------------------------------------------
Set/p Password = password:
If % password % geq 1 goto yes
Echo MSGBox "cannot use special characters. Please enter it again! ", 48," Tip: "> nos. vbs & call nos. vbs & del nos. vbs & call % 0
: Yes
Set Password | findstr "\ <% pass % \>"> nul
Set pass = % password %> nul
If errorlevel = 1 cls & echo MSGBox "password cannot be blank. Please enter it again !! ^_^ ", 48," 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 "the password you entered is incorrect! Enter it again !! ", 48," Tip: "> run. vbs & call run. vbs & del run. vbs & call % 0
: Login
Echo MSGBox "Congratulations ~! Password Verification Successful! Welcome to log on! ** Do not upload Trojans. Thank you for your cooperation! * ** Tips _^ ", 48," NOTE: "> ys. vbs & call ys> nul & del ys. vbs
Cls
Echo, please wait .......
Echo is opening the [Save area] for you]
Net use u:/DELETE/YES> nul
Net use u: % PATH % \ % username %/YES> nul
@ Assumer.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: enter again
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
Set a password for your new user for echo:
Echo ---------------------------------------------------
Echo.
Set/p Password = password:
If % password % geq 1 goto oks
Echo MSGBox "cannot use special characters. Please enter it again! ", 48," Tip: "> run. vbs & call run. vbs & del run. vbs & goto yesok
: Okss
Set/p password 0 = enter again:
If "% password 0%" = "% password %" goto okss
Echo MSGBox "your two passwords are different. Please try again! ", 48," error message: "> no. vbs & call no. vbs & del no. vbs & goto yesok
Goto: yesok
: Okss
Set Password | findstr "\ <% pass % \>"> nul
Set pass = % password %> nul
If errorlevel = 1 cls & echo MSGBox "password cannot be blank. Please enter it again !! Pai_^ ", 48," 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 % \ % username %
Md % PATH % \ % username % \ pass \ % password %
Echo MSGBox "Congratulations ~! You have become a new user in the [storage area] of this Internet cafe. Please put your information in it !~ * _ ^ ", 48," Tip: "> run. vbs & call run. vbs & del run. vbs> nul
Cls
Echo, please wait .......
Echo is opening the [Save area] for you]
Net use u:/DELETE/YES> nul
Net use u: % PATH % \ % username %/YES> nul
@ Assumer.exe u :\
Exit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.