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.

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