Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

remote execution of compiled script but no output returned

$
0
0
Good morning,

I wrote a little script to "print" to the console some properties of the Internet Explorer displayed page (when not minimized).

[ autoit ]      
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Change2CUI=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include $ie_handle1 = winactivate("[CLASS:IEFrame]") ; get iexplore handle $oIE = _IEAttach($ie_handle1 ,"HWND" ) ; reference to $o_object ConsoleWrite("property" & chr(9) & "value" & @CRLF) ConsoleWrite("--------" & chr(9) & "-----" & @CRLF) ConsoleWrite( "locationname : " & chr(9) & _IEPropertyGet( $oIE, "locationname") & @crlf) ConsoleWrite( "locationurl : " & chr(9) & _IEPropertyGet( $oIE, "locationurl") & @crlf) ConsoleWrite( "offline : " & chr(9) & _IEPropertyGet( $oIE, "offline") & @crlf) ConsoleWrite( "readystate : " & chr(9) & _IEPropertyGet( $oIE, "readystate") & @crlf) ConsoleWrite( "referrer : " & chr(9) & _IEPropertyGet( $oIE, "referrer") & @crlf) ConsoleWrite( "theatermode : " & chr(9) & _IEPropertyGet( $oIE, "theatermode") & @crlf) ConsoleWrite( "title (doc) : " & chr(9) & _IEPropertyGet( $oIE, "title") & @crlf)

I compiled the script and it works as well.

But if i open a command prompt on my client and from there I try run the compiled script
on a remote machine with the following psexec statement:

psexec.exe \\remoteclient -u dom\username -p password -i -w "c:\temp" "C:\temp\info_on_browser.exe"

the output of the compiled script executed on the remote client is not returned back to the calling client

if i run the compiled script directly on the remote client from the keyboard in a dos prompt, it is executed correctly and the result is printed

please, does someone had the same problem with compiled script and found the solution?

thanks a lot

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>