Thursday, April 9, 2015

windows - Win 10, batch file / exe not working as expected from task scheduler

Long story short, I have an .exe I wrote many years ago that I no longer have the code for. I want to run this exe as a screensaver.


However, it expects a key press of the ENTER key to start it. I have written batch files using nircmd to send the key, I have tried writing a separate application which is referenced by the batch file to send the key.


Whatever method I use works perfectly from the desktop, but when I try to run it from task scheduler "on idle" the key does not make it through. I have even compiled the batch file into an exe.


The original program is around 10,000 lines long so rewriting it is not an option at this point. I am just trying to understand why it will run from explorer and not task scheduler.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...