"Dave" <> wrote in message
news: om...
> Under local disk manager which is located under Control Panel >
> Administrative Tools > Computer Management, it's possible to choose
> whether a partition is mapped to a local drive letter or not. I'm
> trying to find a way to script this using DOS batch scripting,
> vbscript, or perl. What I want to do is load a disk image to a local
> partition on a laptop, then unmap the drive letter from the partition
> so that regular users can't see it. Also, the 'net use' command
> that's used for mapping network shares to a drive letter won't work
> for this application, as far as I know. Can anybody help me out?
>
You can hide drives from the My Computer windows via the registry (at least
it sounds like that's what you're trying to accomplish).
HKEY_LOCAL_USER\Software\Microsoft\Windows\Current Version\Policies\Explorer
Just add a dword value NoDrives with the appropriate value for the drive you
want to hide ( a=1, b=2, c=4, d=8, etc.). Of course, this setting will only
take effect the next time the person logs on. If you want the drive to be
hidden as soon as your script is executed, well you've got me there...
Matt
|