Create a simple sign up form and store the data in a text file with batch script

Snow

May be you already know this but i am sure most of the beginners doesn't how to store the data in a text file. You can store only the output of the data but adding echo before that command you can also store the input data. I showed how this can be done in above video you can watch there.

So here is the Script Just copy and #save as .bat
@echo off

echo.
echo Welcome to Cybercryptic
echo.
echo Please sign up
echo.
set /p username= " Please enter your username > "
echo.
set /p email= " Please enter your email > "
echo.
set /p phonenumber= " Please enter your phonenumber > "
echo.
set /p password= " Please use strong password > "
cls
echo.
echo Is this information is correct?
echo Your username:%username%
echo Your Email:%email%
echo Your phonenumber:%phonenumber%
echo Your password:%password%
echo.
echo Username: %username% >> %username%.txt
echo Email: %email% >> %username%.txt
echo Phonenumber: %phonenumber% >> %username%.txt
echo Password: %password% >> %username%.txt
start "" %username%.txt

pause
Ads go here

Comments

Archive

Contact Form

Send