Simple Windows Scheduled Tasks Question

By dr.turkey ·
I am trying to automatically schedule a daily sync session via windows scheduled tasks however I'm having one problem. The file I need to run opens a popup to select the profile and then I must click OK for the process to carry out. Once the auto scheduler runs the popup just sits there waiting for me to click OK and the task never gets run.

How do I fix this? Is there a way to just run the task, then pause, and make it hit enter? Please help ive been looking everywhere.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -


by scott_heath In reply to Simple Windows Scheduled ...

run a vbscript instead of the file. have the vbscript launch the file then use the sendkeys function to send the "enter". I use methods like this to script an entire POS keyboard config.

Collapse -

Scott - YOU ROCK!

by dr.turkey In reply to vbscript

All it took was:
set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "otxps.exe"
WScript.Sleep 1000
objShell.SendKeys "{Enter}"

OMG i love you! ThX

Related Discussions

Related Forums