Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    Nov 2006
    Location
    US of A
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make File Extensions Always Visible

    Greetings memebers of Woody's Lounge...

    Yup, my first post.

    I'm a Windows & Solaris admin - and find the more I dig into windows - the more annoyances there are.

    I believes this vbs script (below) to be a means to permenantly make file extensions permenantly visible for all users.

    However, I tried it and it didn't work (I ran it, rebooted into a different windows XP acct).

    I'd like to be able to shut off the "hide file extensions for all file types" permenantly for all users for a machine.

    For instance, I teach an html class - and the first thing I have to do with students is tell everyone how to make file extensions always visible, else their attempts to turn a simple text file into an html file via rename (f2) fails.

    Anyway - I found this courtesy of a website called Kelly's Corner(this is a link to a page with their scripts - warning, the links at that page are vbs scripts - I'd recommend VIEWING THEM FIRST before running them so you know what the scripts do.) .
    It's the vbs script called

    "Show Super Hidden File Extensions"

    <hr><code>
    On Error Resume Next
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.RegDelete "HKCRlnkfileNeverShowExt"
    WshShell.RegDelete "HKCRDocShortcutNeverShowExt"
    WshShell.RegDelete "HKCRInternetShortcutNeverShowExt"
    WshShell.RegDelete "HKCRpiffileNeverShowExt"
    WshShell.RegDelete "HKCRSHCmdFileNeverShowExt"
    WshShell.RegDelete "HKCRShellScrapNeverShowExt"

    </code>
    <hr>



    The following code performs an Undo
    <hr><code>
    On Error Resume Next
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.RegWrite "HKCRlnkfileNeverShowExt", "", "REG_SZ"
    WshShell.RegWrite "HKCRDocShortcutNeverShowExt", "", "REG_SZ"
    WshShell.RegWrite "HKCRInternetShortcutNeverShowExt", "", "REG_SZ"
    WshShell.RegWrite "HKCRpiffileNeverShowExt", "", "REG_SZ"
    WshShell.RegWrite "HKCRSHCmdFileNeverShowExt", "", "REG_SZ"
    WshShell.RegWrite "HKCRShellScrapNeverShowExt", "", "REG_SZ"

    </code>
    <hr>



    Anyway - I'm not so much attached to this code that I found at Kelly's corner as much as I'd really like a means to shut off the annoying "hide file extensions for all file types" at the machine level so users (even new ones) don't have to bother dealing with setting it themselves.

    Anyone know of a method for this?

    Thanks!

    uid0

    ____________

    "Coders are tools for converting caffeine into code."

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Make File Extensions Always Visible

    Welcome to Woody's Lounge! I think this is the value you want to toggle:

    HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVe rsionExplorerAdvancedHideFileExt

    The attached .reg file (named with a .txt extension for posting) would clear the setting. Perhaps not as handy as a script, but...

    Added: That doesn't address the "all users" request. Perhaps there is a "template" you can change under the all users hive that Windows will then apply to new users. If not, you could run the .reg at startup/logon.

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Make File Extensions Always Visible

    Jefferson

    Isn't the 'template' you are talking about the first user in HKEY_USERS known as <big>.DEFAULT</big> ?

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Make File Extensions Always Visible

    John, that may well be. I don't go into that part of the registry without a guardian. <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Make File Extensions Always Visible

    uid0,

    The script that you have found on Kelly's corner deals with the extensions that aren't made visible EVEN if you have enabled file extensions. These are .lnk for a file shortcut, .url for a web shortcut and a few other similar extensions. I really don't think you should make these visible as you could cause all sorts of problems for your users.

    StuartR

  6. #6
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Make File Extensions Always Visible

    If you are the admin for a Windows domain, then the best way to set a value for a registry key for all users is to use a custom administrative template with a Group Policy Object. See <!mskb=323639>Microsoft Knowledge Base Article 323639<!/mskb> for instructions.

    StuartR

  7. #7
    New Lounger
    Join Date
    Nov 2006
    Location
    US of A
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make File Extensions Always Visible

    Thanks everyone for the welcome - and I believe the mixture of posts above will likely yield my answer. I do use GPOs, but must know the value for a GPO before publishing it in active directory.

    Thanks everyone!

    uid0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •