Jens to get RunNow (/RJ) to work I have added this into the UDF just before it shells out to '$Shellcmd' for the final time.
code:
If $Time = 'Now'
$shellcmd = $shellcmd+ ' /RJ'
EndIf
What is the point of having a time of "now" when it will actually run 60 seconds in the future, so I have said that if Time = Now, then Run job Now (/RJ).
Works for me, might be something worth thinking about, not saying that you should change the UDF, but it is up to you.
One other thing, when this is running on a remote PC, it is hidden, but the "$shellcmd = $shellcmd+ ' Hidden=0'" is set to 0, any ideas.
It is running in the background, but not being displayed on screen, not a problem as I wouldn't want the user to see what is being installed, but just wanted to know if it can be displayed on screen.
Thanks
[ 08. August 2003, 10:47: Message edited by: Richard Farthing ]