To open an application in Windows named DriveMaster, I am using subprocess.Popen:
subprocess.Popen(['C:\\Program Files (x86)\\ULINK DM2012 PRO NET\\v970\\DriveMaster.exe'])
Now, if I need to open DriveMaster with a script file loaded, what should I do? From windows command prompt or a windows batch file I run:
"C:\Program Files (x86)\ULINK DM2012 PRO NET\v970\DriveMaster.exe" /s:c:\Program Files (x86)\ULINK DM2012 PRO NET\v970\Scripts\ATA\SATA_TestBatch.srt
Now I need to open DriveMaster with the script file SATA_TestBatch.srt file. Please note there is '/s:' included in the command to load the script file.