DeadlineCommand Job Submission Can't find the file specified

I’m trying to set up a script that can automatically submit a large list of jobs as suspended so that the repository is automatically populated at the start of production.
I was looking at using SubmitCommandLineJob with deadlinecommand but it’s saying “Cannot find the specified file” when I run the command.
I’ve checked and for certain all the file paths are valid, they all open when just pasted into the command line by themselves, but deadlinecommand is halted by it every time. That leads me to believe that I’ve misunderstood the syntax somehow. Here’s what I’ve been using:

deadlinecommand -SubmitCommandLineJob -executable C:/Program Files/Smith Micro/Anime Studio Pro 10/Anime Studio Pro x64.exe -arguments “-start: -end: -width:100 -height:100 C:/Users/ntreanor/Desktop/Example ASP/pr105_sc006_jp_FINAL_comp.anme”

Can anyone spot something awry here?
Also yes I am running command prompt as an administrator and the folder has sufficient read and write permissions on it.

For Deadline 7 try this: C:\Program Files\Thinkbox\Deadline7\bin\deadlinecommand.exe -SubmitCommandLineJob -executable C:/Program Files/Smith Micro/Anime Studio Pro 10/Anime Studio Pro x64.exe -arguments “-start: -end: -width:100 -height:100 C:/Users/ntreanor/Desktop/Example ASP/pr105_sc006_jp_FINAL_comp.anme”

For Deadline 6 try this: C:\Program Files\Thinkbox\Deadline6\bin\deadlinecommand.exe -SubmitCommandLineJob -executable C:/Program Files/Smith Micro/Anime Studio Pro 10/Anime Studio Pro x64.exe -arguments “-start: -end: -width:100 -height:100 C:/Users/ntreanor/Desktop/Example ASP/pr105_sc006_jp_FINAL_comp.anme”

Oh yes, I meant to say that deadlinecommand also works fine as a command normally. And when I use the explicit path to deadline it makes no difference so using

C:\Program Files\Thinkbox\Deadline7\bin\deadlinecommand.exe -SubmitCommandLineJob -executable C:/Program Files/Smith Micro/Anime Studio Pro 10/Anime Studio Pro x64.exe -arguments “-start: -end: -width:100 -height:100 C:/Users/ntreanor/Desktop/Example ASP/pr105_sc006_jp_FINAL_comp.anme”

gives the exact same response.

I am told that removing QUOTE and adding in actual quotation marks help. I ran the following locally on DL 7 and it worked.

“C:\Program Files\Thinkbox\Deadline7\bin\deadlinecommand.exe” -SubmitCommandLineJob -executable “C:/Program Files/Smith Micro/Anime Studio Pro 10/Anime Studio Pro x64.exe” -arguments “-start: -end: -width:100 -height:100 “C:/Users/ntreanor/Desktop/Example ASP/pr105_sc006_jp_FINAL_comp.anme””

It also worked for in the arguments, but escaping seemed much wiser.

Aha! That did it, thank you.
Is it known what causes this error? I’m just wondering if there’s situations where I should still use

Hmm, actually when I tested running this from a python script (basically calling deadlinecommand with subprocess) it’s telling me that my path has illegal characters.

Which I have to assume was what the tag was made for in the first place then.

Hello Gary,

Could I ask to see the python code you are using so we can verify and perhaps test with it? Thanks