hi ryan (and others),
i’m trying to write a simple job script in deadline that executes a program, for example:
c:\program files\blah.exe
the problem of course is the space in the program files directory. unfortunately i can’t install the software anywhere else.
the last part of my script is something like
commandLineFile.WriteLine """c:\program files\blah.exe"""
commandLineFile.Close
' Setup the command line
commandLine = """C:/Deadline/bin/DeadlineCommandBG.exe"" -notify """ & submitInfoFilename & """ """ & pluginInfoFilename & """ " & commandLineFilename
rc = oShell.Run( commandLine, 0, True )
so i am already including rabbit ears with the “” vbs escape code for rabbit ears, but still have problems (i either have the space and can’t run the program or too many rabbit ears.
can you provide a solution for this, whereby deadlinecommandBG can execute a later command with a space in it.
In the command line file, try using the shorthand for the program files path:
C:\PROGRA~1\blah.exe
In the future, we’ll look at the possibility of allowing spaces. I think we’re relying on a space as a separator to separate the executable from the arguments, but this doesn’t work so well when the executable itself has spaces. Changing the format that the command line plugin expects would probably be the easiest solution.
Cheers,
ryan,
cheers great suggestion (should have thought of that) but i mucked around with escaping the spaces.
further complicated for 64bit users but
c:\progra~2 points to the second directory: c:\program files(x86)
foolish of microsoft to put a space in the main program install point…
one other quick question.
can you give any pointers on your development setup for vbscript and deadline (i would love to have error checking and be able to debug)
also, for future reference how are you developing the python code for deadline 3.0 (any IDE or way to wrap deadline into the development environment)
kind regards,
…tig
I just use Scite as my text editor to create and edit all of my scripts. There isn’t an IDE or any sort of development environment for Deadline (yet), but that is an interesting idea. Could be something worth looking into for a later (likely much later) release.
Cheers,
Just an FYI that Deadline 3.0 will support the ability to put executable paths in quotes for the command script plugin.
Cheers,