Results 1 to 4 of 4

Thread: Vista cleanmgr.exe command line parameters

  1. #1
    Join Date
    May 2008
    Posts
    95

    Vista cleanmgr.exe command line parameters

    Hi there,

    I am working on an software to be used in Vista.I would like to know all command line parameters that can be passed to cleanmgr.exe.Basically, I need to choose second option from disk clean up UI screen wherein it cleans profiles of all users.

    thanks for any help

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: Vista cleanmgr.exe command line parameters

    You can start the Disk Cleanup tool by running Cleanmgr.exe, or by clicking Start, pointing to Programs, pointing to Accessories, pointing to System Tools, and then clicking Disk Cleanup. Disk Cleanup supports the following command-line switches
    * /d driveletter: - This switch selects the drive that you want Disk Cleanup to clean. Note that the /d switch is not used with /sagerun:n.
    * /sageset:n - This switch displays the Disk Cleanup Settings dialog box and creates a registry key to store the settings you select. The n value is stored in the registry and allows you to specify different tasks for Disk Cleanup to run. The n value can be any integer value from 0 to 65535. To get all the available options when you are using the /sageset switch, you may need to specify the drive letter that contains the Windows installation.
    * /sagerun:n - This switch runs the specified tasks that are assigned to the n value by using the \sageset switch. All drives in the computer will be enumerated, and the selected profile will be run against each drive.For example, in Scheduled Tasks, you could run the following command after running the cleanmgr /sageset:11 command:
    */ cleanmgr /sagerun:11 This command runs Disk Cleanup with the options that were specified with the cleanmgr /sageset:11 command.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,026

    Re: Vista cleanmgr.exe command line parameters

    Create a Sage Set by using the command cleanmgr.exe /sageset:1024

    cleanmgr.exe against only the T: partition.

    cleanmgr.exe /dt /sagerun:1024

    cleanmgr.exe /sagerun:1024 /dt

    cleanmgr.exe /sagerun:1024

    cleanmgr.exe /dt

  4. #4
    Join Date
    Jan 2009
    Posts
    1,738

    Re: Vista cleanmgr.exe command line parameters

    Bro,Cleanmgr.exe is designed to clear unnecessary files from your computer's hard disk. You can configure Cleanmgr.exe with command-line switches to clean up the files you want. You can then schedule the task to run at a specific time by using the Scheduled Tasks tool.Run automated, and unchecked Disk Cleanup on one, and only one HDD partition , using all Clean Disk checks from a batch file, or a script file. This script file should execute when Windows XP is either starting up, or shutting down, with no human interfere. The PC in question is a multi-user PC, so ideally the script should work no matter who boots the computer

Similar Threads

  1. Replies: 1
    Last Post: 03-07-2012, 11:48 AM
  2. Replies: 6
    Last Post: 11-11-2011, 04:10 PM
  3. Replies: 1
    Last Post: 24-08-2011, 12:35 PM
  4. Replies: 4
    Last Post: 07-02-2011, 12:10 PM
  5. Google's Secret Command-Line Parameters
    By - Empty Shell - in forum Technology & Internet
    Replies: 1
    Last Post: 18-03-2009, 12:27 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,407,791.41603 seconds with 16 queries