Jump to content

Output from DOS


dion
 Share

Recommended Posts

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
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...