markftwain
Technical User
- Jul 12, 2006
- 108
What is the best way to have a User programatically schedule a task in VFP on Windows 7? I would like to have a single vfp .exe file be scheduled at a time specified by the user. At run time, I would like it to receive the initial parameters it was scheduled with. I have tried every permutation of Schtasks, ShellExecute, and Wsript without success. Additionally, it would be nice to avoid the momentary flash of the cmd window. When using ShellExecute, I can't seem to pass any parameters to SchTasks and Wscript seems hopeless.
Thank You
Thank You