Apr-12-2024, 04:11 PM
(Apr-12-2024, 11:56 AM)deanhystad Wrote: But do you need to open the window at all? You can do the scan without opening a cmd window. You do this:
def sfc_scannow_data(): subprocess.Popen(["sfc", "/scannow"])If you want to display output from the command you can get that from the Popen call and display it in the tkinter window.
Interesting concept I didn't think about that I will certainly give it a try