1
For a given task I need to determine what file it is trying to run with a batch code. Currently I use schtasks /query /TN ITCMD-CHAT-NOTIF | find "Ready"
to determine if the task is active, but I see no way to determine what file it is executing. Is it possible?
If you add
/v
to the run string (schtasks /query /v /TN ITCMD-CHAT-NOTIF
), one of the fields contains the schedule string, though it is limited to 50 characters. – AFH – 2018-09-28T17:56:14.020Add a /v and remove the pipe with find and instead pipe it to a file, then please click
edit
above and add the result, so we can see more of what's going on. – K7AAY – 2018-09-28T17:56:28.113