-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Hello and thanks for FileWatcher!
I am currently using FW to monitor file changes and run an EXE on a change.
My issue is that the command line executable I'm running uses the "WorkingDirectory".
I can work around this limitation if I launch FW.exe from the desired "WorkingDirectory", i.e.
C:\Users\User\Desktop\Repo1>c:\Portable\FileWatcher\fw.exe
However, if I need to monitor files from two different folders (i.e. define two configuration xml nodes), I can't run FW from both folder locations :)
[Unless I run two instances of FW?]
Therefore, does it make sense/possible to add a 'WorkingDirectory' XML 'Command' sub-node in the configuration file which would be applied when the EXE is run?
i.e.
`
<watch>
<!--
The path of the Mercurial repository I'm monitoring:
-->
<path>C:\Users\User\Desktop\Repo1</path>
<commands>
<command>
<triggers>
<trigger>Change</trigger>
</triggers>
<workingdirectory>C:\Users\User\Desktop\Repo1</workingdirectory>
<path>C:\Program Files\TortoiseHg\thg.exe</path>
<arguments>commit "[exactpath]"</arguments>
</command>
</commands>
</watch>
<watch>
<!--
The path of the Mercurial repository I'm monitoring:
-->
<path>C:\Users\User\Desktop\Repo2</path>
<commands>
<command>
<triggers>
<trigger>Change</trigger>
</triggers>
<workingdirectory>C:\Users\User\Desktop\Repo2</workingdirectory>
<path>C:\Program Files\TortoiseHg\thg.exe</path>
<arguments>commit "[exactpath]"</arguments>
</command>
</commands>
</watch>
Thanks in advance for your time :)
Metadata
Metadata
Assignees
Labels
No labels