topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 10, 2024, 10:05 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: unable to use taskkill /im FindAndRunRobot.exe to close FARR  (Read 4079 times)

risingeil

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 27
    • View Profile
    • Donate to Member
I run FARR inside a Dropbox folder so I need to close FARR manually before shutting down to give Dropbox enough time to sync the ini files.  So I wrote a batch script to close a few program including FARR via the taskkill /im command.  But I can't seems to close FARR unless I use the /f switch.  Why is that?  Admittedly, I am just lazy, I could got to the system tray and do the right click and Exit, but I would still like to know.  And I don't want to use the /f because settings are  not saved this way and could result in data corruption.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: unable to use taskkill /im FindAndRunRobot.exe to close FARR
« Reply #1 on: April 04, 2011, 12:04 AM »
since it's a batch file, you can use Farr's own command-line syntax to exit.

-exit = exit any running copy of FARR.

more cmd-line
Commandline Options
-standalone = start FARR visible and in taskbar, and exit on close of window
-search "search string" = start FARR visible (or bring up any running copy) and start a search
-show = start FARR visible (or bring up any running copy)
-hide = hide FARR if visible
-toggle = toggle display of farr
-exitifnotrunning = exit FARR unless it was already running and this was a second instance launched just to search or launch
-launch = start FARR (or invoke in a running copy) and launch a command (can use any normal FARR launch strings including setting user variables, etc.)
-unloadplugins = tell running instance of FARR to unload all plugins temporarily, so that plugin files can be replaced
-loadplugins = tell farr to reload temporarily unloaded plugins (must be balanced # of calls)


risingeil

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 27
    • View Profile
    • Donate to Member
Re: unable to use taskkill /im FindAndRunRobot.exe to close FARR
« Reply #2 on: April 04, 2011, 12:07 AM »
Excellent, thank, I didn't think of that