How to code a batch file for cleanmgr with specific drive?
Does anyone have any suggestions on how to code a batch file for clearnmge with specific drive?Run Disk Cleanup once a week. Go to Start>Run>cleanmgr [enter].Thanks in advance for any suggestions1 person needs an answerI do too
July 10th, 2010 7:02am

If its a specfic folder / file suffix you want to delete, why not run a batch file to do specifically that?
Free Windows Admin Tool Kit Click here and download it now
July 11th, 2010 11:38am

at 15:00 /every monday start cleanmgr.exe /C:Substitute the "C" for whatever drive you want it to do. This will start it at 3:00 P.M. every monday. You can change the time, but it HAS to be in military time.You can also add paths byat 15:00 /every monday start cleanmgr.exe /C: /D: /E: /F:Etc.Young and learning...Have mercy - ChaosIf this post resolves your issue, please click the "Mark as Answer" or "Helpful" buttons. This helps other users with similar problems find the answer faster.
July 11th, 2010 11:16pm

Does anyone know what this command is about cleanmgr.exe /sagerun:n?Thanks in advance for any suggestions
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2010 2:29pm

Does anyone know what this command is about cleanmgr.exe /sagerun:n?Thanks in advance for any suggestionsThe /sagerun:n switch runs the Disk Cleanup tool with the options you previously created using the /sageset:n switch.sageset:n - option displays the Disk Cleanup Settings dialog box and also creates a registry key to store the settings that you select. The n value, which is stored in the registry, allows you to specify tasks for Disk Cleanup to run. The n value can be any integer value from 0 to 65535. To have all of the options available when you use the /sageset option, you might need to specify the drive where Windows is installed. You can have any number of tasks created [in Sageset 1, you can select "Recycle Bin", in Sageset configuration 2, you can deselect Recycle-bin. Each of the Sageset configurations are stored in the following registry key and sub-keys:HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer \VolumeCachesAbove from MVP Ramesh's article describing automating disk cleanup.
July 13th, 2010 6:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics