benblamey / when_changed

Windows utility to run a command when a file (or files) change
MIT License
88 stars 14 forks source link

How to run another program after "when_changed" was called? #8

Open Ziggizag opened 4 months ago

Ziggizag commented 4 months ago

Simple scenario.

W want to run Firefox preventing some some corporate soft from manipulating it's configuration files while executed.

If I first run "when_changed" and then Firefox, then I am able to "catch" config files between Firefox load them, but after they were altered by corporate demons and restore my configuration. I would love to have one ".bat" file to click. It should execute "when_changed" and then start Firefox. But now, when "change_file" is executed, it stays in its own loop and does not execute Firefox.

Any idea?

benblamey commented 4 months ago

Try starting when _changed with start /b