This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Compiler/TMS320F28035: How to run .bat file from c

Part Number: TMS320F28035

Tool/software: TI C/C++ Compiler

Hi all,

I have a batch file and I need to run it in main.c. For example:

...

if ( a==1)

{

// execute x.bat which is in desktop or in project folder

}

...

I tried system(), PowerShell()  etc. but could not reach success.

Best regards

  • How is your MCU connected to the PC?
  • user5799371
    I have a batch file and I need to run it in main.c.

    Unfortunately, that is not supported.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click This Resolved My Issue on the best reply to your question
    The CCS Youtube Channel
     has short how-to videos
    The 
    Compiler Wiki answers most common questions
    Track an issue with SDOWP. Enter your bug id in the Search box.

  • In reply to Keith Barkley:

    XDS100v1 USB
  • In reply to George Mock:

    I see, thank you for the answer George.

    Best regards,

    Semih
  • In reply to user5799371:

    You give up to easily. You can use the back channel UART and create a program on the PC that listens to the COM port and executes your batch file when given a command.
  • In reply to Keith Barkley:

    Hi Keith,
    Thank you for the answer. I will try this way!

    Best regards,
    Semih

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.