DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Program sensing and conditional execution  (Read 5,502 times)

idean

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3
Program sensing and conditional execution
« on: July 31, 2008, 10:46 AM »
Now that I have a Sprint EVDO card, I'm finding that the normal auto-update nature of Windows and Windows applications is very annoying sometimes.  Programs always seem to want to download huge updates whenever I get on EVDO versus doing it while I'm on WiFi...

What I'd like is an automatic, scriptable way of stopping and restarting a list of programs (such as Foldersync, Skype, etc...) whenever I start and exit the EVDO modem dialup application.  Can FARR do this for me?  Or can someone recommend a better way?

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: Program sensing and conditional execution
« Reply #1 on: August 16, 2008, 09:54 PM »
FARR certainly can do the "start" part. Just make an alias with all your programs (options -> lists -> Aliases/Groups), and give it some name. Then, type its name in farr, and press ctrl+alt+enter, and it'll launch all the programs listed.
It cannot be done automatically, though...

I think this is sounds more like a request for a coding snack than a feature of farr ;)

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Program sensing and conditional execution
« Reply #2 on: August 18, 2008, 05:43 AM »
And the stop part could probably be done with something like Sysinternal's pskill http://technet.microsoft.com/en-us/sysinternals/bb896683.aspx, configured for the whole list of programs you want to stop, and execute with Ctrl+Alt+Enter as well. I guess there might even be tools that will ask and application to terminate gracefully.

Putting the two lists in a batch file each would be even nicer. There's a help topic entry in FARR's help file by the way called: "Tip: Use Batch Files and Scripts"

The whole thing still would need to be triggered manually though.

Original address: https://www.donationcoder.com/forum/index.php?topic=14270.0