虚拟机生成模块的初步重写

This commit is contained in:
2024-07-31 08:56:29 +08:00
parent 6ca3cea617
commit 56e93dbb72
2 changed files with 243 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ class vbox:
return os.system(("\"" + self.managerPath + "\" modifyvm \"" + self.name + "\" --draganddrop bidirectional"))
def ShareFile(self, name: str, path: str):
return os.system(("\"" + self.managerPath + "\" sharedfolder add \"" + this->name + "\" -name \"" + self.name + "\" -hostpath \"" + path + "\""))
return os.system(("\"" + self.managerPath + "\" sharedfolder add \"" + self.name + "\" -name \"" + self.name + "\" -hostpath \"" + path + "\""))
def SetVBoxSVGA(self):
return os.system(("\"" + self.managerPath + "\" modifyvm \"" + self.name + "\" --graphicscontroller vboxsvga"))