Skip to main content
10 events
when toggle format what by license comment
Apr 25, 2012 at 17:55 comment added user3463 No problem at all. I had a .cmd (not .bat) that opened the EXE. It works, but it's certainly not pretty!
Apr 25, 2012 at 17:54 comment added Andreas Rejbrand Hm... A BAT that opens a LNK that opens an EXE? I just tried the VBS approach and it works perfectly, so I am afraid that I'll accept that answer. But thank you very much for your time!
Apr 25, 2012 at 17:49 history edited user3463 CC BY-SA 3.0
Changed answer to focus on second option
Apr 25, 2012 at 17:47 comment added user3463 The start /min worked on my computer, I'm sorry to say. I don't know what to suggest now.
Apr 25, 2012 at 17:45 review Suggested edits
Apr 25, 2012 at 17:49
Apr 25, 2012 at 17:43 comment added Andreas Rejbrand I noticed that too, but I wasn't fooled by it. I had to write ahs.lnk manually in the task's properties. But still... Also, the BAT approach doesn't work. For some unknown reason, when run, the task opens a console window with the exe file as title, but the contents of cmd.
Apr 25, 2012 at 17:42 comment added user3463 I've just noticed this: when I create a task using a shortcut, it ignores the shortcut and goes directly to the target. Perhaps this is what's happening with you and you need to paste the path to the lnk directly into the Program/Script box?
Apr 25, 2012 at 17:37 comment added user3463 That's interesting. What happens with the start /min option? And does the task have the same privileges that you do? I'm wondering if this is to do with interacting with the desktop like some services do, where the permissions are slightly different. Geo's suggestion with VBScript may be the way to go.
Apr 25, 2012 at 17:34 comment added Andreas Rejbrand Strangely, this doesn't work. I have created a shortcut that starts the EXE minimized, and when I doubleclick the shortcut (LNK file), the EXE is indeed started minimized. But when I tell Task Scheduler to start the LNK, the EXE is still not minimized.
Apr 25, 2012 at 17:19 history answered user3463 CC BY-SA 3.0