使用Silverlight隐藏文件夹4
答
假设你有适当的权限,并且该文件夹在正确的路径中存在的应用程序:
File.SetAttributes(@"..\foo\bar", FileAttributes.Hidden);