|
Answer» There are 24 physical drives attached to a system. How can i get all 24 physical drive's device id number using DOS command? Also please let me know which commad to be used.
Any help is greatly appreciated.
Thanks in ADVANCE, pinksTry using the MS DOS command "MOUNTVOL" as follows. In this demonstration example certain commands have been "remmed" out for safety.
rem By using the "MOUNTVOL" command USB drives used as backup-to-disk targets rem can be either removed or plugged back in. rem By using the "NET SHARE" command USB drives MAY be shared out to users.
c: cd C:\windows\system32\
cls @echo. @echo.
rem This command displays both the details of the corresponding Volume Names and Paths @echo on call mountvol.exe @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem These commands removes the "volume mount POINT" from the "specified directory" @echo on rem This commands removes the drive letter F: from the USB device name rem mountvol.exe F: /D rem This commands removes the drive letter G: from the USB device name rem mountvol.exe G: /D @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command displays both the details of the corresponding Volume Names and Paths @echo on call mountvol.exe @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem These commands assign the "volume mount point" to the "individual directory" rem Should you be REQUIRED to use the "volume mount point" for different USB Drives rem You can mountvol different "individual directory" so long as there is only 1 rem USB drive plugged in at once. @echo on rem mountvol.exe F: \\?\Volume{f90aec0d-a238-11dd-8bd4-001c23d69c2e}\ rem mountvol.exe F: \\?\Volume{10badd33-a9b2-11dd-a3fc-001c23d69c2e}\ rem rem mountvol.exe G: \\?\Volume{10badd33-a9b2-11dd-a3fc-001c23d69c2e}\ @echo off
rem F:\ = \\?\Volume{f90aec0d-a238-11dd-8bd4-001c23d69c2e}\ rem G:\ = \\?\Volume{10badd33-a9b2-11dd-a3fc-001c23d69c2e}\
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command displays both the details of the corresponding Volume Names and Paths @echo on call mountvol.exe @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command displays the available "shares" @echo on net share @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command stops sharing the available "shares" @echo on net share F /delete net share G /delete @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command shares out the USB directory drive with an assigned shared name @echo on net share F=F: net share G=G: @echo off
@echo. @echo. pause
rem *************** cls @echo. @echo.
rem This command displays the available "shares" @echo on net share @echo off
@echo. @echo.
Report to moderator 81.144.157.73
|