save login
Posted: 21 Apr 2012 05:05
I have this code:
@echo off
if not exist vars.bat (
type nul>vars.bat
)
:menu
cls
echo 1) Make new variable
echo 2) View a variable
echo.
set /p cin=Select option:
if %cin%==1 goto mkvar
if %cin%==2 goto getvar
goto menu
:mkvar
cls
set /p var=Enter variable name:
set /p val=Enter value:
echo set %var%=%val%>>vars.bat
goto menu
:getvar
cls
if exist vars.bat call vars.bat
cls
set /p var=Enter a variable:
setlocal enabledelayedexpansion
echo Value of %var% is !%var%!
endlocal
pause
goto menu
And I want it to act as a login code that you can select NEW ACCOUNT or LOGIN and then it does that. Any help please?
@echo off
if not exist vars.bat (
type nul>vars.bat
)
:menu
cls
echo 1) Make new variable
echo 2) View a variable
echo.
set /p cin=Select option:
if %cin%==1 goto mkvar
if %cin%==2 goto getvar
goto menu
:mkvar
cls
set /p var=Enter variable name:
set /p val=Enter value:
echo set %var%=%val%>>vars.bat
goto menu
:getvar
cls
if exist vars.bat call vars.bat
cls
set /p var=Enter a variable:
setlocal enabledelayedexpansion
echo Value of %var% is !%var%!
endlocal
pause
goto menu
And I want it to act as a login code that you can select NEW ACCOUNT or LOGIN and then it does that. Any help please?