Your scheduled job does not run as expected.
This can have lots of causes.
You can set the switch so interaction with the desktop is possible in services.msc. (Schedule or Taskplaner) Then you check the time on your system, ad 2 minutes to it and execute the following command:
at 16:39 /interactive c:windowssystem32cmd.exe /k c: emp est.cmd
The test.cmd file has the following contents:
echo troubleshooting > c: emp rouble.txt
You do not need to add the cmd file, just cmd.exe /k will do. I just prefer to be noticed which commandline is opened by the scheduler since I always have a few command lines on the screen. The one opened by the job is the one with "troubleshooting" in it.
If you do not see your commandline, you can check for the file c: emp rouble.txt. It should be there. If not, your job did not run. If it is but you do not see anything, you should check the interactive setting for the service.
Disclaimer:The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
About the Author
Author: Wim Peeters - Keskon GmbH & Co. KG
Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.