Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivillä vaihtaessasi?

Sisällysluettelo:

Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivillä vaihtaessasi?
Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivillä vaihtaessasi?

Video: Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivillä vaihtaessasi?

Video: Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivillä vaihtaessasi?
Video: GeForce GTX 1660ti Testing & Review 2021 | Unboxing & Easy Install - YouTube 2024, Huhtikuu
Anonim
Vaikka useimmat meistä eivät koskaan tarvitse nähdä tai käyttää piilotettuja tiedostoja Windows-järjestelmissä, muut saattavat joutua työskentelemään heidän kanssaan useammin. Onko helppo tapa vaihtaa edestakaisin piilotettujen tiedostojen näyttämisen ja piilottamisen välillä? Tänään SuperUser Q & A -postilla on ratkaisu turhautuneeseen lukijan ongelmaan.
Vaikka useimmat meistä eivät koskaan tarvitse nähdä tai käyttää piilotettuja tiedostoja Windows-järjestelmissä, muut saattavat joutua työskentelemään heidän kanssaan useammin. Onko helppo tapa vaihtaa edestakaisin piilotettujen tiedostojen näyttämisen ja piilottamisen välillä? Tänään SuperUser Q & A -postilla on ratkaisu turhautuneeseen lukijan ongelmaan.

Tämän päivän kysymys- ja vastausistunto tulee meihin SuperUserin hyväksi - Stack Exchangein alaosasto, joka on yhteisöllinen Q & A-sivustojen ryhmittely.

Kysymys

SuperUser-lukija RogUE haluaa tietää, kuinka näyttää tai piilottaa Windowsin piilotetut tiedostot komentorivin avulla:

I often need to toggle between showing and hiding the hidden files on my Windows system. I have been doing it the usual way:

  • Click Organize in an Explorer Window
  • Select Folder and Search Options
  • Switch to the View Tab
  • Toggle between Show/Hide Hidden Files

This method is lengthy and I am tired of it. I would like the ability to toggle between showing and hiding them using the Command Line (CMD). Is there a way to set this up for regular files as well as system files?

Miten näytät tai piilotat Windowsin piilotetut tiedostot komentorivin vaihtaessasi?

Vastaus

SuperUser-avustaja Steven on meille vastaus:

Hidden Files, Folders, or Drives

Add (or overwrite /f) the value Hidden to the registry key:

HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced

Show

reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v Hidden /t REG_DWORD /d 1 /f

Do not Show

reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v Hidden /t REG_DWORD /d 2 /f

ToggleHiddenFiles.bat

Image
Image

Hide Protected Operating System Files (Recommended)

Checked

reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v ShowSuperHidden /t REG_DWORD /d 0 /f

Unchecked

reg add “HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced” /v ShowSuperHidden /t REG_DWORD /d 1 /f

ToggleSystemFiles.bat

Image
Image

Notes

The changes take place immediately. The program reg requires admin privileges, so the batch files must be run as administrator.

Onko jokin asia lisättävä selitykseen? Kuulkaa kommentit. Haluatko lukea lisää vastauksia muilta tech-tajuilta Stack Exchange-käyttäjiltä? Katso koko keskusteluketju täältä.

Suositeltava: