EmptyBinSilent !bang should be silent now.

This commit is contained in:
Kimmo Pekkola 2009-07-30 20:15:10 +00:00
parent 67e98c327e
commit 86f75fe243

View File

@ -254,7 +254,7 @@ void ExecuteBang(LPCTSTR args, UINT id)
{ //Empty the Recycle Bin (no prompt)
if(wcsicmp(driveSet.c_str(), L"ALL") == 0)
{
if(SHEmptyRecycleBin( NULL, NULL, NULL ) == S_OK)
if(SHEmptyRecycleBin( NULL, NULL, SHERB_NOCONFIRMATION | SHERB_NOPROGRESSUI | SHERB_NOSOUND ) == S_OK)
{
return;
}
@ -270,7 +270,7 @@ void ExecuteBang(LPCTSTR args, UINT id)
for(int i=0;i < tokens.size(); i++)
{
std::wstring strd = tokens.at(i);
SHEmptyRecycleBin( NULL, strd.c_str(), NULL ); // empty bin
SHEmptyRecycleBin( NULL, strd.c_str(), SHERB_NOCONFIRMATION | SHERB_NOPROGRESSUI | SHERB_NOSOUND ); // empty bin
}
return;
}