| How do you access variables set using SET /U or SET /S
| I want to pass PID information between different TCC session.
| For example:
| session one:
| SET /U S1PID=%_pid%
| session two:
| TASKEND /F %S1PID%
Combine the /E option with /U or /S to force the other sessions to see
the variable. However, that still does not make them accessible to the
parser, which you need to access the value. The method I found is to use
@EXECSTR[set /u s1pid]
which works correctly.
Alternately, you can use Vince Fatica's plug-in 4UTILS.DLL, which has
the command GSET to set the global variable, and the function @GV to
retrieve its value.