Winbootmate Full ((better)) ⚡
class WinBootMate: def (self, root): self.root = root self.root.title("WinBootMate - Boot Assistant") self.root.geometry("700x550") self.root.resizable(True, True)
# Copy files try: subprocess.run(f'xcopy {mount_letter}\\* {usb_drive}\\ /E /H /Y', shell=True, check=True) self.log("Files copied. Making bootable...") # Make bootable boot_sect_path = os.path.join(os.environ['WINDIR'], 'System32', 'bootsect.exe') if os.path.exists(boot_sect_path): subprocess.run(f'{boot_sect_path} /nt60 {usb_drive}', shell=True) self.log(f"✓ Bootable USB created on {usb_drive}") except Exception as e: self.log(f"✗ Copy failed: {e}") finally: subprocess.run(f'powershell Dismount-DiskImage -ImagePath "{iso_path}"', shell=True)
# Buttons frame btn_frame = tk.Frame(root) btn_frame.pack(pady=5) winbootmate full
self.log("Preparing USB with diskpart...") subprocess.run(f"diskpart /s {dp_script_path}", shell=True, capture_output=True) os.unlink(dp_script_path)
def log(self, msg): self.output.insert(tk.END, msg + "\n") self.output.see(tk.END) self.root.update() class WinBootMate: def (self, root): self
self.log("WinBootMate ready. Run as Admin for full features.")
# Use diskpart + bootsect (common method) with tempfile.NamedTemporaryFile(mode='w', suffix='.txt', delete=False) as dp_script: dp_script.write(f"select volume {usb_drive[0]}\nclean\ncreate partition primary\nactive\nformat fs=ntfs quick\nassign letter={usb_drive[0]}\nexit\n") dp_script_path = dp_script.name class WinBootMate: def (self
# Output area self.output = scrolledtext.ScrolledText(root, wrap=tk.WORD, height=20, font=("Consolas", 9)) self.output.pack(fill=tk.BOTH, expand=True, padx=10, pady=10)