dion Posted November 1, 2010 Share Posted November 1, 2010 (edited) Dear folks, I trying to create a script that would tells me what mode is CheckPoint SecuRemote is in and then perform a task. but I'm unable to output the status to my script. Any help would be most appreciated. Thank you in advance. My script: Local Const $CPPATH = 'C:\Program Files\CheckPoint\SecuRemote\bin\' Local Const $Connect = "Connect Mode", $CLI = "Command Line Mode", $modeoutput= @ScriptDir & "\mode.txt" Func CLI () Run($CPPATH & "scc setmode cli", "", @SW_HIDE) Sleep (3000) EndFunc ;==> End CLI Func CON () Run($CPPATH & "scc setmode con", "", @SW_HIDE) EndFunc ;==> End of Connect ;Check SecureClient Mode $mode = Run($CPPATH & "scc setmode", "", @SW_HIDE) If $mode = $CLI Then MsgBox( 16,"Secure Client is in Command Line Mode") Else $mode = $Connect Then MsgBox( 16,"Secure Cleint is in Connect Mode") EndIf The Output from Command Line: Edited November 1, 2010 by dion Link to comment Share on other sites More sharing options...
JohnOne Posted November 1, 2010 Share Posted November 1, 2010 Im not much familiar with the functions, but you should be looking at StdoutRead() and its related functions. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
dion Posted November 1, 2010 Author Share Posted November 1, 2010 Im not much familiar with the functions, but you should be looking at StdoutRead() and its related functions.Hi John, I would give it a try. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now