1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

3rd party program in a batch file

Discussion in 'Legacy Windows' started by Sebastian42, 2010/08/03.

  1. 2010/08/03
    Sebastian42

    Sebastian42 Well-Known Member Thread Starter

    Joined:
    2008/11/25
    Messages:
    84
    Likes Received:
    0
    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. 2010/08/03
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,314
    Likes Received:
    252
    Why are you wanting to do this? When you're done "internetting" do you also unplug the network cable to avoid being REALLY exposed to the outside world without a firewall..
     

  3. to hide this advert.

  4. 2010/08/04
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    You are going to have a tough time doing this if Sygate starts up automatically with windows for it has two startup entries. The first entry starts it as a Service, then the second entry brings up the GUI of Sygate. 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.
    It really isn't a good idea to have WinME exposed to the internet without a firewall, as it shares the same unfixed vulnerabilties at the core of the operating system as Win98 possesses.
     
  5. 2010/08/04
    Sebastian42

    Sebastian42 Well-Known Member Thread Starter

    Joined:
    2008/11/25
    Messages:
    84
    Likes Received:
    0
    I do. I have rigged up an ethernet switch.
     
  6. 2010/08/04
    Sebastian42

    Sebastian42 Well-Known Member Thread Starter

    Joined:
    2008/11/25
    Messages:
    84
    Likes Received:
    0
    My Sygate does not start up with Windows. I trigger its launching along with any other needed internetting software, before I go on-line. I have not seen 'services' in WinMe, like I have in WinXP.
    In any case Procrecon DOES close sygate (remove its icon from the systray),
    when Procrecon is run 'normally'. I just need to know how to get Prorecon to work from a batch-file.
     
  7. 2010/08/04
    Sebastian42

    Sebastian42 Well-Known Member Thread Starter

    Joined:
    2008/11/25
    Messages:
    84
    Likes Received:
    0
    The batch file that succeeds is as follows :

    cd "C:\Program Files\Procrecon "
    ProcRecon /t "Sygate Personal Firewall "
     
  8. 2010/08/04
    markp62

    markp62 Geek Member Alumni

    Joined:
    2002/05/01
    Messages:
    4,012
    Likes Received:
    16
    Nope, but they are there.
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices
    "SmcService "= "C:\\PROGRAM FILES\\SYGATE\\SPF\\SMC.EXE "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    "SmcService "= "C:\\PROGRA~1\\SYGATE\\SPF\\SMC.EXE -startgui "
    These are the two main startup Keys in 95/98/ME. Please note the word Services in the first Key.
    Well, anyway, you got what you are looking for.
     
  9. 2010/08/05
    Sebastian42

    Sebastian42 Well-Known Member Thread Starter

    Joined:
    2008/11/25
    Messages:
    84
    Likes Received:
    0
    Thank for setting me right about WinMe's Services - especially your detailed way. Who knows when that may come in handy ?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.