oren 0 Posted June 28, 2011 Is there a known problem using run( in windows 2003 servers and in windows 2008 servers??? Becuase I made a script that use run( after X sec of Idle time , and someone downloaded it and said the the script does not start his program Is there a known problem in those version of windows?? Thank you Share this post Link to post Share on other sites
jvanegmond 306 Posted June 28, 2011 There is no known problem in these versions of Windows. In fact, there are a lot of people who can testament that it functions correctly. Including myself. Maybe you need to tell more about your problem. Are you running as service? github.com/jvanegmond Share this post Link to post Share on other sites
oren 0 Posted June 28, 2011 (edited) This is the script While 1 Sleep(300) if $r = 0 Then $t= _Timer_GetIdleTime() if $t> $idle Then _PathSplit($pro,$a,$b,$c,$d) $path = $a & $b $q = run($pro&$argN ,$path,$inv) Sleep(1000) if $inv=@SW_HIDE Then $iconInd = _SysTrayIconIndex($q,2,$WinV) _SysTrayIconRemove($iconInd,$WinV) EndIf $r =1 EndIf EndIf if $r = 1 Then $t= _Timer_GetIdleTime() if $t < $idle Then Run(@ComSpec & " /c taskkill /F /PID " & $q & " /T", @SystemDir, @SW_HIDE) $r=0 EndIf EndIf WEnd And the man say it does not start is application.. I just gave him the script I think he run the script but just double clicking it Plus he say that my script work on his desktop but it does not work in the windows servers 2003 and 2008 Edited June 28, 2011 by oren Share this post Link to post Share on other sites