generate functionSat, 12 Nov 2022

Check all hard drives for errors and log the report to "c:\hdcheck.txt". Restart the PC when finished.

def chkdsk(): import os os.system('chkdsk') os.system('echo "chkdsk completed" >> C:\hdcheck.txt') os.system('shutdown -r') return chkdsk()

Questions about programming?Chat with your personal AI assistant