Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cmd terminal
#5
(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
Reply


Messages In This Thread
cmd terminal - by Raysz - Apr-11-2024, 07:28 PM
RE: cmd terminal - by deanhystad - Apr-11-2024, 08:42 PM
RE: cmd terminal - by Raysz - Apr-12-2024, 04:43 AM
RE: cmd terminal - by deanhystad - Apr-12-2024, 11:56 AM
RE: cmd terminal - by Raysz - Apr-12-2024, 04:11 PM
RE: cmd terminal - by Rice23 - Apr-22-2024, 04:30 AM
RE: cmd terminal - by Gribouillis - Apr-22-2024, 06:54 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020