Add Quotation marks How?

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.

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

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");  

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 08/12/2009 at 13:00, xxxxxxxx wrote:

TY very much 🙂