【Python】Tkinter GUI 添加删除开机启动项
import tkinter as tk from tkinter import filedialog, messagebox import winreg import os # 获取当前用户的启动项注册表路径 startup_reg_path = r"Software\Microsoft\Windows\CurrentVersion\Run" startup_reg_key = winreg.HKEY_CURRENT_USER def get_startup_items(): try: key = winreg.OpenKey(sta...
最近评论