I need to call a program in command line that will be executed in batch mode. This program receives a file with extension .jlink that contains a series of commands that the program JLink.exe will execute and then close.
I tried to execute in the following way:
os.system('C:/SEGGER/JLink_V490d/JLink.exe -CommanderScript D:\Files\CommandFile.jlink')
But this command executes the program in normal mode, not accepting the arguments.
How can I call as execution of command line and then send that command so the program executes in batch mode with those arguments?