PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Shawn Anderson on April 01, 2010, 03:22:06 PM

Title: autorun
Post by: Shawn Anderson on April 01, 2010, 03:22:06 PM
I want to be able to start my program using a command line switch that automatically runs a task, ideally without displaying a gui.

In other words:
program.exe starts the program in normal GUI mode (mostly used for setting up defaults)

program.exe /autorun starts the program, runs it, and quits (used for scheduling tasks)

how?
thanks
Title: Re: autorun
Post by: Paul Squires on April 01, 2010, 03:42:15 PM
I would deal with COMMAND$ in the FF_WinMain handler...do your task and then return %TRUE from FF_WinMain (this will prevent the main "startup form" from ever displaying).
Title: Re: autorun
Post by: Shawn Anderson on April 01, 2010, 04:40:29 PM
Great, thanks.