Sign in to follow this  
Followers 0
oren

windows 2003 servers run(

3 posts in this topic

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



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?

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by oren

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0