简体   繁体   中英

How to change windows recyclebin properties


在此输入图像描述

How can I get this property of recyclebin and switch it using C#.

There is no supported way to do so irrespective of language.

As far as I understand there is no API to configure this settings. You can query information about recycle bin via PInvoke ( SHQueryRecycleBin and empty ( SHEmptyRecycleBin ).

Couple ways to touch those settings can be found in Raymond Chen's blog post - What is default size of the Recycle Bin... . Summary below:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM