i have a windows batch file - called fileA.bat, which contains a variable set in it. Sample code of fileA.bat:
now i have another batch file, called fileB.bat, which needs to access this variable set in fileA.bat.
So the code that I write in fileB.bat would want to do something like this:
set fileB_username = %fileA_username%
and then keep using the fileB_username in the script code.
FileB would be calling fileA as part of execution like this:
code in fileB:
--- --- call fileA.bat --- --- set fileB_username = fileA_username --- if fileB_username ----
how do i access variables that are set in external batch files? Thanks.