How to control enable or disable hidden files in win vista

Aug 11 2011 9:52 PM
Dear all
all i need to know how to make control on show all files or hide files in win vista
i using this code but does not work

RegistryKey

key = Registry.CurrentUser.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" );

key.SetValue(

"Hidden", 2, RegistryValueKind.DWord);

Answers (1)