Posted by Stephen Auerbach on July 12, 2007 at 08:42:43:
Both versions of the following code work. However, the remote work station did NOT display a window when executing the batch file. The local work station did display a window.
PUBVBKB$ = sub(zrmd$,1,2) + "PVBKB.BAT" !Build the batch file name
IsRemote = Asc(Sub(Dstat(Term$), 21, 1))
If IsRemote EQ False
PRINT(0)(SHELLEXECUTE="OPEN",PUBVBKB$,"","\\COMET\COMET\SCRIPTS\",1)
ELSE
close(40) & open(40) "X00"
PRINT(40) (SHELLEXECUTE="OPEN",PUBVBKB$,"","\\comet\comet\scripts\",1)
Endif
Are we doing something wrong?