Announcement

Collapse
No announcement yet.

Run Disk Cleaner

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run Disk Cleaner

    You can use below script to clean junk files from your disk drives,


    import os;
    clean=os.popen('cleanmgr.exe /sagerun:1').read()
    print(clean);



    One can expect success or failure status ,no STDOUT text .



    Last edited by Ilker; 09-01-2016, 01:14 AM.

  • #2
    hi,
    this didn't work for me. i did cleanmgr.exe /sagerset:1 but still not working when i try this script, nothing happen. any one make this work ?

    Comment


    • #3
      Hi cfcsupport

      Please refer attached file for updated procedure to run disk cleaning.



      Attached Files

      Comment


      • #4
        hi,
        thank you for your reply, unfortunately i tried this but it's mot working for me.

        Comment


        • #5
          ok, i found the problem, when i try to run this script as a system user it will not work, the only way to make it work is to run as a logged in user.

          Comment


          • #6
            Hi cfcsupport

            Thank you.

            Comment

            Working...
            X