TechSpot

Implementing 3rd party program in a batch file

By Sebastian42
Aug 3, 2010
Post New Reply
  1. When I am finished with internetting I want to close ALL programs associated with internetting. I can do that by batch file using ENDPROCESS for all except the firewall.
    Since Sygate does not have an entry in WinMe's Task Manager,
    I can not close it with ENDPROCESS.
    Procrecon CAN close Sygate when
    1. Procrecon is opened
    2. smc.exe is selected from a list that Procrecon displays
    and 3. the 'Terminate process' button is clicked.
    I want to do all that by means of a batch file

    To do its work by COMMAND-LINE, Procrecon provides these three options
    ProcRecon /h < process_Window_Handle >
    ProcRecon /f < file_name_of_process_to_be_terminated >
    ProcRecon /t < window_caption_of_process >

    I do not know how to implement them in a batchfile, can someone tell me please ?

    Then I MAY need a line that 'clicks the TERMINATE PROCESS button'.
     
  2. daisyallen123

    daisyallen123 TS Rookie

    Amazing idea and as far as I know first entry starts it as a Service, then the second entry brings up the GUI of Sygate. And WinME tends to closely guard any executable started up as a Service from being terminated, this is the reason it doesn't show up in the WinME Task Manager.
     
  3. Sebastian42

    Sebastian42 TS Member Topic Starter Posts: 26

    The answer

    The final batch file that does the trick goes as follows :
    cd "C:\Program Files\Procrecon"
    ProcRecon /t "Sygate Personal Firewall"
    "C:\Program Files\End Process\EndProcess" Procrecon
    Echo off
    Cls
     

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...