简体   繁体   English

如何更改windows recyclebin属性

[英]How to change windows recyclebin properties


在此输入图像描述

How can I get this property of recyclebin and switch it using C#. 如何获取recyclebin的这个属性并使用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. 据我所知,没有API来配置此设置。 You can query information about recycle bin via PInvoke ( SHQueryRecycleBin and empty ( SHEmptyRecycleBin ). 您可以通过PInvoke( SHQueryRecycleBin和空( SHEmptyRecycleBin )) 查询有关回收站的信息。

Couple ways to touch those settings can be found in Raymond Chen's blog post - What is default size of the Recycle Bin... . 在Raymond Chen的博客文章中可以找到几种触摸这些设置的方法 - 什么是回收站的默认大小.... Summary below: 摘要如下:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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