For example:
Contents of 11.bat:
echo off
set a =12
start "" "22.bat"
When 22.bat opens, how can %a% become 12? In other words, how can the environment variable from 11.bat be passed to 22.BAT
Requirement: 22.BAT must be opened in a new window, so the CALL command cannot be used
Contents of 11.bat:
echo off
set a =12
start "" "22.bat"
When 22.bat opens, how can %a% become 12? In other words, how can the environment variable from 11.bat be passed to 22.BAT
Requirement: 22.BAT must be opened in a new window, so the CALL command cannot be used


