Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Add Quotation marks How?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 275 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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");  
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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 🙂

          1 Reply Last reply Reply Quote 0
          • First post
            Last post