0

Please note that I am familiar with the command line that is supposed to OPEN and run a program minimized, however that just doesn't work with some third-party programs. So I thought I could use a batch file with two command lines - one to open the program and the other to minimize it. I wonder if that would work.

  • 4
    It can't be done natively in CMD. You would need to either use a third-party program, such as nircmd or write a batch script or vbscript that does this. The batch script would in essence write the vbscript and then execute it. – LPChip Dec 18 '17 at 9:54
  • I see, and do you happen to know the nircmd command line to do that? I couldn't find it anywhere on their website. – Josef H. Dec 18 '17 at 10:00
  • nircmd.nirsoft.net/sendmouse.html – LPChip Dec 18 '17 at 11:17
  • 1
    So the sendmouse by nirsoft didn't work for me but I found a similar solution using AutoHotkey (MouseClick, left, x, y) and that does the trick. It's all quite complicated but my problem is solved now. Thank you LPChip for you idea. – Josef H. Dec 20 '17 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.