Hide "Removeable disk" drives in my computer?

croc_croc_ New
edited July 2004 in Science & Tech
Is there a way to hide the "Removeable Disk" drive icons from "My Computer" and "Explorer" when there is no media inserted in them?

Comments

  • MediaManMediaMan Powered by loose parts.
    edited July 2004
    Here is the code for something that "may" work. It's also in the form of a VBS file found here

    http://www.kellys-korner-xp.com/regs_edits/enabledisabletray.vbs

    NOTE: I am


    Option Explicit
    On Error Resume Next

    Dim WSHShell, n, p, itemtype, MyBox
    Set WSHShell = WScript.CreateObject("WScript.Shell")

    p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\EnableAutoTray"

    itemtype = "REG_DWORD"

    n = WSHShell.RegRead (p)
    errnum = Err.Number

    if errnum <> 1 then

    WSHShell.RegWrite p, 0, itemtype
    End If

    If n = 0 Then
    WshShell.RegWrite p, 1, itemtype
    MyBox = MsgBox("Show Inactive Icons in the Notification Area are now ENABLED", 64, "Show or Hide Icons in the Notification Area")
    End If

    If n = 1 Then
    WshShell.Regwrite p, 0, itemtype
    MyBox = MsgBox("Show Inactive Icons in the Notification Area are now DISABLED", 64, "Show or Hide Icons in the Notification Area")
    End If

    Set WshShell = Nothing
  • croc_croc_ New
    edited July 2004
    Hmm, nope.
Sign In or Register to comment.