2

How to enable hiding and viewing system files "in general" using a batch file?

I have researched on the net and found these results such as: ATTRIB -S -H RECORD.TXT

But this is "specific" to a file... I want to know how to do this for the explorer. Basically how to manipulate these options in "Folder Options" using a batch file.

sinhalokaya
  • 21
  • 1
  • 2
  • possible duplicate of [Configure Windows Explorer Folder Options through Powershell](http://stackoverflow.com/questions/4491999/configure-windows-explorer-folder-options-through-powershell) – briantist Aug 10 '14 at 18:03
  • Attrib command dont change 'display' mode of Explorer, but change attributes. You mixed apples and bananas in your question. – Xearinox Aug 10 '14 at 18:44
  • Exactly! what I wanna do is to change the "display mode" only! – sinhalokaya Aug 11 '14 at 13:16

1 Answers1

0

As described in this question Configure Windows Explorer Folder Options through Powershell

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

There are various values in this key that control the options. You can manipulate them through a batch file (rather than powershell) using reg.exe.

Easiest way would be to set the options you want in the GUI, export the key to a .reg file, then use reg.exe IMPORT settings.reg

Community
  • 1
  • 1
briantist
  • 45,546
  • 6
  • 82
  • 127