Guus2005
AWF VIP
- Local time
- Today, 08:03
- Joined
- Jun 26, 2007
- Messages
- 2,642
How can i use a batch file to set a variable so that it doesn't vanish after the script is done?
When i run File2 after File1 variable1 is not recognised.
So the scope of variable1 is only within File1.bat present.
How can i change that?
Code:
rem File1.bat
set variable1=foo
Code:
rem File2.bat
echo %variable1%
When i run File2 after File1 variable1 is not recognised.
So the scope of variable1 is only within File1.bat present.
How can i change that?