What I want to do is change the configuration of the computer so that the hidden folders can be seen and also so that the non-hidden folders can not be seen. Obviously with C # code but you can in any other way ....
To be able to modify that you will have to do it from the registry, changing the Hidden registry values
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Win32;
namespace ModificarRegistro
{
class Program
{
static void Main(string[] args)
{
const string userRoot = "HKEY_CURRENT_USER";
const string subkey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced";
const string keyName = userRoot + "\" + subkey;
Console.WriteLine("1- Mostrar archivos ocultos");
Console.WriteLine("2- Ocultar archivos ocultos");
ConsoleKeyInfo reg = Console.ReadKey();
if (reg.Key == ConsoleKey.D1)
{
Registry.SetValue(keyName, "Hidden", 1, RegistryValueKind.QWord);
Registry.SetValue(keyName, "SuperHidden", 1, RegistryValueKind.QWord);
Registry.SetValue(keyName, "ShowSuperHidden", 1, RegistryValueKind.QWord);
}
else
{
Registry.SetValue(keyName, "Hidden", 2, RegistryValueKind.QWord);
Registry.SetValue(keyName, "SuperHidden", 2, RegistryValueKind.QWord);
Registry.SetValue(keyName, "ShowSuperHidden", 2, RegistryValueKind.QWord);
}
}
}
}
The answer is available in many places, depending on the Windows version. The modification of the configuration of the user by program can also be consulted in the documentation of MS .
Changes to Windows settings are made in the registry.
If you mean browse or search the file directory , you can also check it in the MS documentation.