Perhaps you are looking for a method to monitor when a program starts, like firefox, and when it does, start another program, like foxit, if it is not already running? Then you could start this "monitoring" program on bootup and it would always do its check, like every couple seconds. Pretty much the same thing whitedragon551 said.
#Run task till dawn as service how to#
You might need to pass parameters as well, so it is helpful to take a look at how to pass those.Ĭreate a shortcut on desktop to the batch file.Ĭhange icon of the shortcut to the firefox icon.ĭouble click shortcut to start both programs. (don't know why you would need that, in the "old way" you just passed a fully qualified path) When needing to start programs in other directories, you would use the /d switch
When that task is completed, he fumbles with her feet until he’s able to remove her high heels, leaving her. One night, he feels lonely and needs some human contact, so he calls someone who, hopefully, will keep him company. That should mean if the batch file lives in c:\program files\mozilla, you could just typeĪnd as long as it is in the starting/working directory, it is good. Because of what hes been through, he cant find a girlfriend that wont run away from him. * note that the /d is used to pass a directory different than the starting directory Start /d "c:\program files\foxit\foxit.exe" Often it is just to satisfy my techno thrill-o-meter.įor a batch file, here is an example for firefox and foxit (just pulling familiar apps out of thin air)īatch file would reside in firefox directory I often look for the "just right" solution rather than settle for what I don't want. I guess it depends on just what you want. I guess I'll have to take a deeper look at it, though, because now I'm interested in making it work, just for the sake of it.
#Run task till dawn as service windows#
My initial wondering had to due with Windows own scheduler, that I thought had no such options, but according to you it has, though I still couldn't make it work. I tried both approaches (first one app., then the other one).Īnyways, I believe the best option is just to create a batch/script file that would just check whether or not if program A is running, and if yes start program B, otherwise not start it. In "Start with/Start in", following the most logical thing to me, this would be where I'd put a path, for the other application? I tried that, but it didn't start the application. In "Add arguments", which argument would be added to it? I'm assuming the arguments would be any that the application itself would accept when working with it using cmd line, right? How would any of its arguments allow me to start on other application? Or, do you mean the opposite, add program A? Now, in the Settings > Program/Script, the one to be added would be program B, which would start when program A is already running. I can see two more options, which are part of settings in the Actions tab: (Bear in mind that I'm not running the English version of Windows, and therefore my translation may not be the same as the real English version words.) Click to expand.I looked at it, and couldn't find any option that could allow me? Maybe I missed it.