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! :)
It really isn't that difficult.
Instead of going about it in a strange way employing strange tools I'd never heard of, I tried from scratch.
Thanks to this post answered partly by @RationalRabit on the subject of a similar problem that occurred on Windows 8, by running:
I found this solution worked well when I used
/c start "Title" /min "<PATH>".instead and I changed my
.shextension to an exact copy to.bat.The moral of this story is: If it's a Windows Tool, it's probably been around for a while.