Hello all,

I'm trying to figure out a way to pass a string between scripts, which is called using the RUN, due to being run as an administrator with CPAU.exe. The required string is located in Script 'A', which calls CPAU.exe to run Script 'B' which requires the variable.

Because it is called like:

;--------------------------
RUN "%comspec% /c " + $netlogon_path + "CPAU.exe -dec -file " + $netlogon_path + "audit.job -lwop"
;--------------------------

It effectivly goes Script 'A' --> Command prompt --> CPAU.exe --> Script 'B', i've pretty much ruled out doing it by Error codes etc. Should i do it by setting a local or global variable? Or by writing the variable to a txt file on the local PC which is read by script 'B'? Do it using a registry key?

Because it's a logon script, it's run by limited user accounts.

Oh and for info on CPAU.exe (http://www.joeware.net/freetools/tools/cpau/index.htm)

Thanks in advance

Luke


Edited by lukeod (2008-02-19 02:27 AM)