How to code batch file to clean recycle bin without confirmation?
Does anyone have any suggestions on how to code batch file to clean recycle bin without confirmation?Thank everyone very much for any suggestions1 person needs an answerI do too
August 9th, 2010 8:12pm

I suppose Disk Cleanup isnt an option?
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2010 2:52am

When I set schedule for following command, the recycle bin under C Drive does not empty after running it.Could you please give me any suggestions on how to set option to empty recycle bin?C:\WINDOWS\system32\cleanmgr.exe /sagerun:nDo you have any suggestions?Thank everyone very much for any suggestions
August 10th, 2010 6:37pm

create a registry entry:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Recycle Bin]"StateFlags0001"=dword:00000002Now, you create a batch (*.bat) file with the following:regedit /s EmptyBin.regcleanmgr /sagerun:1_________________________________________________ Sergio Daniel Pinto Teixeira, ENG., MCP
Free Windows Admin Tool Kit Click here and download it now
August 10th, 2010 7:41pm

Does anyone have any suggestions on how to code batch file to clean recycle bin without confirmation?Thank everyone very much for any suggestions================================================Something to try:Right click the Recycle Bin icon and choose...Properties / Global tab...Uncheck the box..."Do not move files to the Recycle Bin. Remove files immediately when deleted" / Apply / OK... More info:(320031) HOW TO: Bypass the Recycle Bin When You Delete Files and Folders in Windows XPhttp://support.microsoft.com/kb/320031Volunteer J - MS-MVP - Digital Media Experience - Notice_This is not tech support_I am a volunteer - Solutions that work for me may not work for you - ***Proceed at your own risk***
August 10th, 2010 7:54pm

That doesn't clean the Recycle bin, it eliminates its functionality. steve "Volunteer J" wrote in message news:1c24b9ef-9358-471f-8df2-edfbc279e997...Does anyone have any suggestions on how to code batch file to clean recycle bin without confirmation?Thank everyone very much for any suggestions================================================Something to try:Right click the Recycle Bin icon and choose...Properties / Global tab...Uncheck the box..."Do not move files to the Recycle Bin. Remove files immediately when deleted" / Apply / OK... More info:(320031) HOW TO: Bypass the Recycle Bin When You Delete Files and Folders in Windows XPhttp://support.microsoft.com/kb/320031Volunteer J - MS-MVP - Digital Media Experience - Notice_This is not tech support_I am a volunteer - Solutions that work for me may not work for you - ***Proceed at your own risk***
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2010 12:03am

That doesn't clean the Recycle bin, it eliminates its functionality. steve ===================================================OK...I thought that was what the OP wanted to accomplish.BTW...there is a box to uncheck...that says...'Display delete confirmation dialog'. I thought it might be an alternative to a batch file.Since you seem to understand the question better than I do...why don't you provide the correct answer?Volunteer J - MS-MVP - Digital Media Experience - Notice_This is not tech support_I am a volunteer - Solutions that work for me may not work for you - ***Proceed at your own risk***
August 11th, 2010 1:20am

When I create dword under your described location, could you please tell me how to set the DWORD? which is named as StateFlags0001, do I assign the value 00000002 into this DWORD? when I assign this value, it shows 0x00000002 (2).Does it look correctly based on your description?Thank everyone very much for any suggestions
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2010 6:39pm

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

Other recent topics Other recent topics