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 OSWindows Batch
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)".

Kevin
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
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