![]() |
|
|
#11 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: hide drive
there is no such command, unless you use a script that does the changes. The script will either have to disable it from device manager or from registry.
__________________
Please don't click here |
|
|
|
|
|
#12 |
|
Junior Member (25+)
Join Date: Dec 2006
Location: kathmandu
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
Re: hide drive
it was posted earlier in the stuffs but i cant get it.
don't you know by removing the drive letter |
|
|
|
|
|
#14 |
|
News Reporter
![]() |
Re: hide drive
Hmm, via My Computer? Never heard that way. Risum, as baku said, there is no way to do it directly from the command line. You need to have a pre-written program for the easiest way. If there is possibly a good command line code, that I could whip up a Ruby program and compile an EXE. First, it would ask the drive letter, then it does the rest. But I'm sure that there is no command line way of doing this. The registry would be the best way, although I've never heard this My Computer way. I'm sure baku could make you a .reg file that will insert the commands into the registry.
__________________
--1mAn3rd |
|
|
|
|
|
#15 | |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: hide drive
Quote:
|
|
|
|
|
|
|
#16 |
|
News Reporter
![]() |
Re: hide drive
Oooo, I thought you meant hide via My computer
Silly me ![]()
__________________
--1mAn3rd |
|
|
|
|
|
#17 |
|
Junior Member (25+)
Join Date: Dec 2006
Location: kathmandu
Posts: 54
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() |
Re: hide drive
no guys the drive can be hide from cmd also by removing the drive letter of drive d usin remove letter d.
but i forget the code how to list the drives. if you know how to list the drives thru cmd post it. |
|
|
|
|
|
#18 | |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: hide drive
Quote:
Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colDisks = objWMIService.ExecQuery("Select * from Win32_LogicalDisk")
For Each objDisk in colDisks
Wscript.Echo objDisk.DeviceID
Next
However there is still no built in utility to remove drive letters. |
|
|
|
|
![]() |
| Tags: simple |
| Thread Tools | |
| Display Modes | |
|
|