Sign in to follow this  
Followers 0
dion

Output from DOS

3 posts in this topic

#1 ·  Posted (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:

post-57992-12886027882182_thumb.png

Edited by dion

Share this post


Link to post
Share on other sites



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.

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