Jump to content

windows 2003 servers run(


Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...