troubleshooting Question

Windows Task Scheduler Run bat File with a Path Parameter

Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)Flag for United States of America asked on
Windows BatchWindows OS
10 Comments1 Solution20 ViewsLast Modified:
Trying to set up a task in Windows Task Scheduler where a bat file is run and passed a path that contains spaces. I can get the bat file to run without the path parameter but not with the path parameter.

The action is "C:\Full\Path\To\Batch File.bat".

The parameter should be "C:Full\Path\To\Another File.txt" but, when I enter it, the bat file is not called and the Last Run Result is "(0x1)". Without the parameter, the bat file is run and the Last Run Result is "The operation completed successfully. (0x0)".

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros