# Buttons frame btn_frame = tk.Frame(root) btn_frame.pack(pady=5)
def create_bootable_usb(self): iso_path = filedialog.askopenfilename(title="Select Windows ISO", filetypes=[("ISO files", "*.iso")]) if not iso_path: return # Get USB drive letter drives = [] for d in ['D:', 'E:', 'F:', 'G:', 'H:', 'I:']: if os.path.exists(d): drives.append(d) if not drives: self.log("No removable drives found.") return winbootmate full
def view_boot_entries(self): self.log("\n--- Current Boot Entries ---") self.run_admin_cmd("bcdedit /enum", "Enumerating BCD store") # Buttons frame btn_frame = tk
def fix_boot_errors(self): self.log("\n--- Attempting common boot fixes ---") self.run_admin_cmd("bootrec /fixmbr", "Fix MBR") self.run_admin_cmd("bootrec /fixboot", "Fix boot sector") self.run_admin_cmd("bootrec /scanos", "Scan for OS") self.run_admin_cmd("bootrec /rebuildbcd", "Rebuild BCD") self.log("Reboot to see if issues are resolved.") "Fix MBR") self.run_admin_cmd("bootrec /fixboot"