For example, here is what is done between two batch files:
In demo.bat,
set tmp=ABC
...
call main.bat
---
In main.bat,
if not "%tmp%"="" echo got it, %%tmp%% = %tmp% ... it worked!!
---
Now without a 'demo.bat' file, how can I pass my %tmp% variable from Windows 7 to my main.bat?
Phil
PS tried following
' Create a script (within my VB app) to pass parameters to Windows Batch file
' nogo as of 7/13/2018 pbb, need help!
' oShell.run "cmd /V /C Set -ua tmp %" & "ABC", 3, True
In demo.bat,
set tmp=ABC
...
call main.bat
---
In main.bat,
if not "%tmp%"="" echo got it, %%tmp%% = %tmp% ... it worked!!
---
Now without a 'demo.bat' file, how can I pass my %tmp% variable from Windows 7 to my main.bat?
Phil
PS tried following
' Create a script (within my VB app) to pass parameters to Windows Batch file
' nogo as of 7/13/2018 pbb, need help!
' oShell.run "cmd /V /C Set -ua tmp %" & "ABC", 3, True



- carpe noctem



These 'launch' links allow users to define their text & background colors, text fonts & sizes, etc. ... very helpful for developers to let the owners decide these things. A bat file does -not- have such options.