0

Good day!

I need to run this command as a whole in windows CMD:

>abx.exe -s -t file.txt db usr pwd

tryed

os.run('abx.exe -s -t file.txt db usr pwd')

and

gc = ['abx.exe', '-s', '-t', 'file.txt', 'db', 'usr', 'pwd']
pr = subprocess.Popen(gc)
pr.wait()

but both did't work. It is not executing anything.

Thank you for your help!

jigga
  • 558
  • 4
  • 16

1 Answers1

0

Try this;

import os
os.system("your command")
Ozichukwu
  • 396
  • 3
  • 12