I need help in passing a variable value of a batch file to another batch file.
I am using this statement:
call vartest.bat
if %username%==NA (
echo First login detected.
set /p usernameIN= Username:
@echo set username=%usernameIN% > vartest.bat
)
The problem is that, the value of "usernameIN" does not pass-on to the external batch file. I tried it using normal text instead of the variable and it works.
Is there any way to make this possible?
Thank you.