JSI Tip 2829. Another way to remove the 'Show Files' link in Windows Explorer.


I first described removing the Show Files link in tip 2555.

Another way to remove the Show Files link on %SystemRoot% and %SystemRoot%\System32, plus the \Program Files folder, is to implement the following procedure for each of the preceeding folders:

1. Navigate to the folder and Show Files.

2. Open the folder.htt file in Notepad.

3. Locate the following code:

        function Load() \{
            Initialize(L_Intro_Text);
            Info.innerHTML = L_Intro_Text + L_Barricade_Text;
            window.onresize = ResizeBarricade;
            ResizeBarricade();
            if (gShowFiles)
            \{
                ShowFiles();
            \}
        \}
4. Change the code to:
        function Load() \{
            Initialize(L_Intro_Text);
            Info.innerHTML = L_Intro_Text + L_Barricade_Text;
            window.onresize = ResizeBarricade;
            ResizeBarricade();
            ShowFiles();
        \}
5. Save the file and exit notepad.
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish