{"id":969,"date":"2009-11-24T11:37:24","date_gmt":"2009-11-24T06:07:24","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=969"},"modified":"2019-05-12T03:04:11","modified_gmt":"2019-05-12T03:04:11","slug":"new-defrag-cmd-line-parameters-windows-7","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/new-defrag-cmd-line-parameters-windows-7\/","title":{"rendered":"New Command-Line Parameters for Defrag.exe in Windows 7"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/w7-icon.png\">Several new switches or parameters are added to the defragmentation console tool (defrag.exe) in Windows 7. The switches are \/E, \/H, \/M, \/T, \/U &amp; \/X. Here is the entire list of parameters supported by defrag.exe (v6.1) in Windows 7:<\/p>\n<table id=\"table1\" width=\"500\">\n<tr>\n<td align=\"center\"><b>Switch<\/b><\/td>\n<td align=\"center\"><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/A<\/td>\n<td>Perform analysis on the specified volumes.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/C<\/td>\n<td>Perform the operation on all volumes.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/E<\/td>\n<td>Perform the operation on all volumes except those specified.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/H<\/td>\n<td>Run the operation at normal priority (default is low).<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/M<\/td>\n<td>Run the operation on each volume in parallel in the background.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/T<\/td>\n<td>Track an operation already in progress on the specified volume.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/U<\/td>\n<td>Print the progress of the operation on the screen.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/V<\/td>\n<td>Print verbose output containing the fragmentation statistics.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/X<\/td>\n<td>Perform free space consolidation on the specified volumes.<\/td>\n<\/tr>\n<\/table>\n<p><strike>Likewise, the following switches are dropped in Windows 7<\/strike>.&nbsp; Although the following switches are not listed when running &quot;defrag.exe \/?&quot;, Defrag.exe in Windows 7 still accepts these switches. It&#8217;s not clear if they&#8217;re left for backward compatibility. Perhaps we should wait for official note from Microsoft.<\/p>\n<table id=\"table2\" width=\"500\">\n<tr>\n<td align=\"center\"><b>Switch<\/b><\/td>\n<td align=\"center\"><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/R<\/td>\n<td>Performs partial defragmentation (default). Attempts to <br \/>consolidate only fragments smaller than 64 megabytes (MB).<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/W<\/td>\n<td>Performs full defragmentation. Attempts to consolidate all file<br \/>fragments, regardless of their size.<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">\/F<\/td>\n<td>Forces defragmentation of the volume when free space is low.<\/td>\n<\/tr>\n<\/table>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Several new switches or parameters are added to the defragmentation console tool (defrag.exe) in Windows 7. The switches are \/E, \/H, \/M, \/T, \/U &amp; \/X. Here is the entire list of parameters supported by defrag.exe (v6.1) in Windows 7: Switch Description \/A Perform analysis on the specified volumes. \/C Perform the operation on all &#8230; <a title=\"New Command-Line Parameters for Defrag.exe in Windows 7\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/new-defrag-cmd-line-parameters-windows-7\/\" aria-label=\"Read more about New Command-Line Parameters for Defrag.exe in Windows 7\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9],"tags":[],"class_list":["post-969","post","type-post","status-publish","format-standard","hentry","category-windows-7"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3794,"url":"https:\/\/www.winhelponline.com\/blog\/stordiag-file-system-diagnostic-windows-10\/","url_meta":{"origin":969,"position":0},"title":"File System and Storage Diagnostic Tool StorDiag.exe in Windows 10","author":"Ramesh","date":"August 12, 2016","format":false,"excerpt":"The Windows 10 Redstone 1 update silently adds a new console tool (StorDiag.exe) which can be used to collect storage and file system diagnostic logs. This is a useful tool for identifying problems with your hard drive or the file system, and the collected data can be helpful for troubleshooting\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75380,"url":"https:\/\/www.winhelponline.com\/blog\/extend-windows-re-partition-powershell\/","url_meta":{"origin":969,"position":1},"title":"How to Extend the Windows RE Partition Using PowerShell","author":"Ramesh","date":"June 3, 2024","format":false,"excerpt":"KB5034441 is a WinRE security update that patches the Winre.wim image. The Recovery partition needs 250 MB of free space for the KB5034441 update to install correctly. Almost every Windows 10 user has been affected by the KB5034441 error 0x80070643. You can extend the Recovery partition using the diskpart command-line.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"create folder - powershell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/ps-create-folder.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/ps-create-folder.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/ps-create-folder.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/06\/ps-create-folder.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":76008,"url":"https:\/\/www.winhelponline.com\/blog\/reagentc-exe-operation-failed-3\/","url_meta":{"origin":969,"position":2},"title":"REAGENTC.EXE: Operation failed: 3","author":"Ramesh","date":"July 18, 2024","format":false,"excerpt":"When you attempt to enable Windows RE by running the reagentc \/enable command, the following error may be shown: REAGENTC.EXE: Operation failed: 3 REAGENTC.EXE: An error has occurred. When you attempt to create a USB recovery drive, the following error occurs: We can't create a recovery drive on this PC\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"reagent error 3 - cannot create recovery drive","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/cant-create-recovery-drive.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/cant-create-recovery-drive.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/cant-create-recovery-drive.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":799,"url":"https:\/\/www.winhelponline.com\/blog\/delete-old-user-profile-folders-automatically\/","url_meta":{"origin":969,"position":3},"title":"How to Delete Old User Profile Folders Automatically in Windows","author":"Ramesh","date":"December 19, 2008","format":false,"excerpt":"Windows includes a Group Policy setting that automatically deletes the user profile folders that are older than a specified number of days. This article applies to Pro and higher editions of Windows that have the Group Policy Editor. Delete Old User Profile Folders Automatically in Windows To automatically delete old\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":847,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-delete-system-restore-points-windows\/","url_meta":{"origin":969,"position":4},"title":"How to Delete All System Restore Points in Windows","author":"Ramesh","date":"January 26, 2009","format":false,"excerpt":"Are you running out of hard disk space even after clearing out the temporary folder and other junk files? You may consider lowering the disk space allotted to System Restore or delete the System Restore snapshots which include previous versions of files. Upgrading the hard disk is the ultimate solution\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"vssadmin delete all restore points","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/01\/vssadmin-delete-all.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/01\/vssadmin-delete-all.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/01\/vssadmin-delete-all.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":74912,"url":"https:\/\/www.winhelponline.com\/blog\/bootrec-fixboot-access-is-denied\/","url_meta":{"origin":969,"position":5},"title":"Error &#8220;Access is Denied&#8221; when running &#8220;Bootrec \/Fixboot&#8221;","author":"Ramesh","date":"April 23, 2024","format":false,"excerpt":"When you run the \"bootrec \/fixboot\" command from Windows RE, the error \"Access is denied\" occurs: Bootrec \/FixMbr -- writes the master boot record of the system partition using the master boot record compatible with Windows. This operation does not overwrite the existing partition table. Bootrec \/FixBoot -- write a\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"bootrec \/fixboot access denied","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/fixboot-access-denied-gpt-uefi.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=969"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/969\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}