Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/12/2009 at 11:18, xxxxxxxx wrote:
User Information: Cinema 4D Version: 9.603 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- Ive made a script that writes out a batch file but it doesnt like to write the quotation marks I need for windows to execute the file properly.
Where have I gone wrong?
var filename = GeGetStartupPath(); filename->AddLast("C4D2UVL.bat"); var file = new(BaseFile); file->Open(filename, GE_WRITE); file->WriteString("CALL" + " C:\\Program Files\\headus\\uvlayout.exe" + " -plugin" + " C:/Temp/Temp.obj"); file->Close();
I need the text in the batch file to read: CALL "C:\Program Files\headus\uvlayout.exe" -plugin C:/Temp/Temp.obj
Thanks for the help.
On 08/12/2009 at 12:13, xxxxxxxx wrote:
"
For certain characters you need an escape character to distinguish from the character being used in context (the script code itself) - just like you did with the '\'.
file->WriteString("CALL \"C:\\Program Files\\headus\\uvlayout.exe\" -plugin C:/Temp/Temp.obj");
On 08/12/2009 at 13:00, xxxxxxxx wrote:
TY very much