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

capture RunAsWait output

$
0
0
How can i capture the output of Runaswait?

Local $foo = RunAsWait($sUserName, $domain, $sPassword, 1, "C:\band7Deploy\PsExec.exe \\10.80.100.134 -s -h -u CORP2\username -p password -c -v GhostTaskStatus.cmd", "C:\band7Deploy",@SW_MAXIMIZE)

  • I tried redirecting the output to a file (which is ok coz i can parse the file and get what i want)
    	Local $foo = RunAsWait($sUserName, $domain, $sPassword, 1, "C:\band7Deploy\PsExec.exe \\10.80.100.134 -s -h -u CORP2\username -p password -c -v GhostTaskStatus.cmd >info.txt", "C:\band7Deploy",@SW_MAXIMIZE)
    	
    
    .But the redirection is getting picked-up as part of the psexec command and not producing info.txt on my local machine

  • The opt_flag parameter seems to have only a 0x10000 ($RUN_CREATE_NEW_CONSOLE) option, unlike the RunAs function
Pointers are appreciated.
Thx.

Viewing all articles
Browse latest Browse all 12506

Trending Articles