Python Forum
python 3.5 windows 10 how to run exe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python 3.5 windows 10 how to run exe
#1
Hello, I would like to make a script in python that clones VMWare virtual machines by running the executable vmrun.exe, but I do not know how to do, I try with subprocess, but I do not understand how to pass my arguments here my Code:
import subprocess
  
argument = '-T ws clone D:\\clone\\clone.vmx D:\\clone\\clone_1.vmx linked -cloneName="clone_1"'
subprocess.call(['C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmrun.exe', argument])
Here is the complete command I want to execute:
vmrun -T ws clone D:\clone\clone.vmx D:\clone\clone_0.vmx linked -cloneName="clone_0"
Reply


Messages In This Thread
python 3.5 windows 10 how to run exe - by jipete - Dec-25-2016, 12:37 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020