-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemclean.py
31 lines (28 loc) · 1.36 KB
/
Systemclean.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python3
""" Copyright© 2023-2025 LinuxUsersLinuxMint
AdWMGUI Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
AdWMGUI All Rights Reserved under the GPL(General Public License).
Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/AdWMGUI
A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/AdWMGUI """
import os
from tkinter import *
from tkinter import messagebox
from AdWMGUILang.lang import *
from PyAppDevKit.pyappdevkit import *
def OpenCleanmgr():
os.system("cleanmgr.exe")
def AdvancedCleanup():
if messagebox.askyesno(adwmgui_txt_title, show_msg_ask_title) == True:
messagebox.showinfo(adv_cleanup_title, adv_clnp_txt_title)
time(2)
messagebox.showinfo(adv_cleanup_title, adv_cleanup_step_one_txt_title)
os.system("DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore")
time(2)
messagebox.showinfo(adv_cleanup_title, adv_cleanup_step_two_txt_title)
os.system("DISM.exe /Online /Cleanup-Image /StartComponentCleanup")
time(2)
messagebox.showinfo(adv_cleanup_title, adv_clnp_done_title)
else:
os.system("DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore")
time(2)
os.system("DISM.exe /Online /Cleanup-Image /StartComponentCleanup")