I have a sync program which runs various Git commands to update a repository. So far I have written a functioning .sh script and scheduled it to run periodically from startup.
Currently, I will be busy updating things and git bash will appear over the top of whatever I'm doing. I want the program to begin minimised. Running Windows 10, task scheduler doesn't seem to have this functionally built in.
I have tried creating a shortcut with special target parameters (as mentioned in the Tips.md of the mintty GitHub page) with success until I run it from the Task Scheduler. The Task Scheduler, not built on top of a command line, runs mintty.exe
as the specified shortcut's underlying program.
When I specifically add ".lnk" to my target path (as is the file extension of this shortcut), Task Scheduler doesn't recognise it and prompts a manual selection of a program to run it in.
Ideally, I'd like every command line of any kind in each part of a solution to minimised or hidden but I'm okay with less than half a second of popup.
Thanks in advance! :)