Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2340
  • Last Modified:

Windows server 2008 R2 - Task Scheduler 0x1 when running batch files

I have a Windows server 2008 R2 server that I am trying to get a command / batch file to run in a scheduled task.
I have read on the net that there is a problem with command / batch files that contain quotation marks in command line and arguments.
I can run other command / batch files from Task Scheduler that don't have quotation marks and they run fine, but in this instance I need to be able to run a command line that has got.

Does anyone know of a fix or work around to be able to schedule these tasks?
0
bax2000
Asked:
bax2000
  • 2
  • 2
1 Solution
 
Darius GhassemCommented:
You need to create a batch file that calls up the other batch file this should bypass the problem.
0
 
bax2000Author Commented:
I did try that, but got the same results.
0
 
Darius GhassemCommented:
You created a batch file that calls up the other batch file with same results?  Did you go to options and make sure you have the Start in option configured?
0
 
bax2000Author Commented:
Start in option helped.
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now