Batch processing realizes internet Café Archive _dos/bat

Source: Internet
Author: User
Tags goto

Batch processing realizes internet Café Archive

Copy Code code as follows:

@echo off
Color 0a
Cls
Set path =\\game\ upload $

echo. Detecting whether to connect to the Save area ...
@net use J: "% PATH%"
If exist j:\ goto Nno
At the end of the Echo connection, contact your network administrator.
Pause>nul
Exit
: Nno
@net Use/del J: >nul
: Koko
Cls
echo, please enter your account number and return! If you do not have an account, please press ENTER after you create a new one, and remember that the account is well established. So that you can use the next login.
Echo---------------------------------------------------
set/p username = user name:
Echo---------------------------------------------------
If% user name% Geq 1 goto start
echo MSGBox "username cannot be a special symbol, please re-enter!", 48, "error message:" >nos.vbs &&call nos.vbs &&del nos.vbs &&goto
: Start
Set user name |findstr "\<%search%\>" >nul
Set search=% user% >nul
Echo is validating user%% user name
echo Please wait ...
If exist% path%\% user name% goto Pass >nul
If not exist% path%\% user name% goto MD >nul
:p
REM Password verification
Set Errorlevel=>nul
echo→ "% User Name%" This user 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 "\<%pass%\>" >nul
Set pass=% Password% >nul
If errorlevel=1 cls &&echo MSGBox "Password cannot be empty Oh, please re-enter it!! ^_^ ", 48," Warm tip: ">kong.vbs &&call kong.vbs &&del kong.vbs &&call%0
If exist% path%\% user name%\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 tip: ">run.vbs &&call run.vbs &&del run.vbs &&call%0
: Login
echo MSGBox "Congratulations ~! Password Verification Successful! Welcome to your login! * * Please do not upload Trojan virus Oh, thank you for your cooperation! ^_^ ", 48," Warm tip: ">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%\% user name%/yes >nul
@explorer. exe u:\
Exit
: MD
echo username does not exist, do you want to create a new user?
Echo.
echo A: Create A 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 again:
If "% password 0%" = "% password%" goto OKSS
Echo MSGBox "Your two times password is different, please re-enter!", 48, "error message:" >no.vbs &&call no.vbs &&del no.vbs &&goto
Goto:yesok
: OKSS
Set Password |findstr "\<%pass%\>" >nul
Set pass=% Password% >nul
If errorlevel=1 cls &&echo MSGBox "Password cannot be empty Oh, please re-enter it!! ^_^ ", 48," Warm tip: ">run.vbs &&call run.vbs &&del run.vbs &&call%0
md% path%\% user name% >nul
md% Path%\% user name%\pass
attrib +h +s% path%\% user name%\pass
attrib +h +s% path%\% user name%
md% Path%\% username%\pass\% password%
echo MSGBox "Congratulations ~! You have become the Internet café "save area" of new users, quickly put your information into it! ~*_^ ", 48," Warm tip: ">run.vbs &&call run.vbs &&del run.vbs
Cls
echo, please wait.
Echo is opening the save area for you.
NET use u:/delete/yes >nul
NET use u:% path%\% user name%/yes >nul
@explorer. 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.