You are not logged in.
Pages: 1
Is there any command that can keep the variables so that the file that called it can display them with the same name?
e.g:
File 1:
set a=foo
goto :eof
File 2:
Call File 1
echo %a%
pause
File 2 should still keep File 1's A variable.
Offline
As long as you don't have setlocal in file 1, it will already do that.
Last edited by Shadow Thief (10 Jun 2018 23:47)
Offline
Pages: 1