@echo off
color 0a
cls
set path=\\game\xz$
echo. Checking whether to connect to the save area...
@net use J: "%path%"
if exist J:\ goto nno
At the end of the echo, please contact the network administrator.
pause>nul
exit
:nno
@net use /del J: >nul
:koko
cls
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃ Dear customers of this Internet cafe: ┃
echo ┃ ┃
echo ┃ Hello~! ┃
echo ┃ Do you have any pictures, documents, software, game archives, etc. that you need to save? ┃
echo ┃ ┃
echo ┃ Because our Internet cafe computer has a restore system, your information will disappear after restarting. ┃
echo ┃ Please put the information you need to save in the [save area] prepared for you by this Internet cafe? ┃
echo ┃ ┃
echo ┃ ┃
echo ┃ Note: The information in [Save Area] will not be restored, and any computer can access it ┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
echo.
echo.
echo Please enter your account and press Enter! If you don’t have an account, please create a new one below and press Enter. Please remember it after the account is built. This will allow you to use it next time you log in.
echo ---------------------------------------------------
set/p Username=Username:
echo ---------------------------------------------------
if %username%geq 1 goto start
echo MSGBox "The username cannot be a special symbol, please re-enter!",48,"Error prompt:" > &&call &&del &&goto koko
:start
set username|findstr "\<%search%\>" >nul
set search=%user%>nul
echo is 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 "Special symbols cannot be used, please re-enter!",48,"warm reminder:" > &&call &&del &&call %0
:yes
set password|findstr "\<%pass%\>" >nul
set pass=%password% >nul
if errorlevel=1 cls &&echo MSGBox "The password cannot be empty, please re-enter!!^_^",48,"warm reminder:" > &&call &&del &&call %0
if exist %path %\%Username %\pass\%Pass\%Password % goto login >nul
if not exist %path%\%Username%\pass\%Pass\%Password% echo MSGBox "The password you entered is wrong! Please re-enter!!",48,"warm reminder:" > &&call &&del &&call %0
:login
echo MSGBox "Congratulations~! Password verification is successful! Welcome to log in! **Please do not upload * virus. Thank you for your cooperation!***^_^",48,"warm reminder:"
cls
echo please wait......
echo is opening [Save Area] for you
NET USE u: /DELETE /YES >nul
net use u: %path%\%Username% /YES >nul
@ u:\
exit
:md
The echo username does not exist, is it created 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 "Special symbols cannot be used, please re-enter!",48,"warm reminder:" > &&call &&del &&goto yesok
:oks
set /p Password 0=Please enter again:
if "%password 0%"=="%password %" goto okss
echo MSGBox "Your password is different twice, please re-enter!",48,"Error prompt: "> &&call &&del &&goto yesok
goto :yesok
:okss
set password|findstr "\<%pass%\>" >nul
set pass=%password% >nul
if errorlevel=1 cls &&echo MSGBox "The password cannot be empty, please re-enter!!^_^",48,"warm reminder:" > &&call &&del &&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\%Pass\%Pass%
echo MSGBox "Congratulations~! You have become a new user of this Internet cafe [Save Area], hurry up and put your information in! ~*_^",48,"warm reminder:" > &&call &&del >nul
cls
echo please wait......
echo is opening [Save Area] for you
NET USE u: /DELETE /YES >nul
net use u: %path%\%Username% /YES >nul
@ u:\
exit