Results 1 to 12 of 12

Thread: Drives...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Question

    How can I hide/show a system drive??
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Not really a VB issue - but if you get hold of TweakUI by Microsoft (you can probably search for it on their website) it allows you to change many things including the visibility of drives in My Computer.
    If this helps...
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Actually...

    I meant through CODE
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  4. #4
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Depends on how you are listing drives (drivelistbox etc)
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    APi though

    I meant ACTUALLY hide the drive in Windows. I know its possible because programs like Winboost can do it
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  6. #6
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    hum, I dunno.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  7. #7
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Talking

    I read that the Tweak UI will indeed allow you to change drive visibility in MyComputer and that it does it through a registry change. The registry entry is as follows.

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

    DWORD Value named "NoDrives"

    Basically you will want to put a decimal value in that registry entry based on the drive or drives you want to hide.

    The values should be as follows:

    A = 1
    B = 2
    C = 4
    D = 8
    E = 16
    F = 32
    G = 64
    H = 128
    I = 256
    J = 512
    K = 1024
    L = 2048
    M = 4096
    N = 8192
    O = 16384
    P = 32768
    Q = 65536
    R = 131072
    S = 262144
    T = 524288
    U = 1048576
    V = 2097152
    W = 4194304
    X = 8388608
    Y = 16777216
    Z = 33554432

    You can use any one of these values to hide the one drive or you can add them to hide multiple drives (for example to hide drives D and E you would use the combined value or 24.

    NOTE: This will not prevent access to the drive. There are still a ton of ways to get to it. Command Prompt, Start-Run-D:\, and numberous others but it will hide it in explorer/my computer.

    Hope that helps,
    KillemAll

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Talking Thanks..But also

    That is an interesting post. Sounds like it might work. Thanks everyone. Also I have one more question that might also relate to that post. Using code, how can I diable/enable a drive's autorun? And if you are wondering, yes these questions are linked.
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  9. #9
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    I think there's a registry setting somewhere.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Talking Thaks

    ____________________________________________________________
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  11. #11
    Lively Member
    Join Date
    Sep 2000
    Location
    NC, USA
    Posts
    102

    Smile sorry, I meant to post this sooner, just been busy

    This is not as easy as the disable a drive question. Unless something has changed since i looked into this issue last ( a year or so ago) you have to change the following registry entry:

    HKEY_LOCAL_MACHINE\Enum\SCSI\MEMOREX_CRW-1622________D\MF&CHILD0001&PCI&VEN_1106&DEV_0571&SUBSYS_00000000&REV_06&BUS_00&DEV_07&FUNC_0110

    That is for the memorex I had.

    HKEY_LOCAL_MACHINE\Enum\SCSI\KENWOOD_CD-ROM_UCR-421__2\MF&CHILD0001&PCI&VEN_1106&DEV_0571&SUBSYS_00000000&REV_06&BUS_00&DEV_07&FUNC_0100

    That is for the Kenwood 72-X that I currently use.

    There is really no way to know what entry a persons computer will have for their particular CD-Rom Drive. I think (if I am not mistaken) that this only applies to Win9x. I don't know for sure about WinME or Win2k but I am almost positive that it is not the same for WinNT.

    You will probably just have to enumerate through all entries under "HKEY_LOCAL_MACHINE\Enum\SCSI\" until you find those with the correct value two subkeys deep. This Value is a hex 00 or 01. 00 turns it of and 01 turns it on. The value label is:

    "AutoInsertNotification"

    I hope that helps,
    KillemAll

  12. #12
    Member
    Join Date
    Jul 2006
    Posts
    53

    Re: Drives...

    And dont forget the value "67108863" for all the drives...

Posting Permissions

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



Click Here to Expand Forum to Full Width