October 27, 200817 yr Author WMI is too powerful, most valuable link: http://www.windows-management.com/scriptin...cal/#ADPPDD.htmFOR WIN2K3 AND VISTA diskpart, mountvol etc are of no use. Edited October 28, 200817 yr by victor888
October 28, 200817 yr WMI is too powerful, most valuable link: http://www.windows-management.com/scriptin...cal/#ADPPDD.htmNice VBS script. I'll try to replicate it's approach. jaclaz
October 28, 200817 yr Author Jaclaz go!I am studying wmi/wmic these days too, hope an smart script come out ealier under your work and my support.
October 29, 200817 yr Find attached another example.Nothing actually working, but a little step further. Check testwmic3.cmd:Finding the escaping characters needed to use the "Where" operator with the value "Disk #m, Partition #n" and redirecting failing instances to nul can only be described as a nightmare! Rule seems to be that you need to enclose the Where argument into brackets () to be able to use the quotes "" inside it, and when in a FOR loop:equal sign = needs to be escapedquotes " and commas , (that normally would need to be escaped) need NOT to be escapedjaclaztestwmic2_3.zip
November 1, 200817 yr It seems to me that after all WMIC is not "the" solution, but it may be part of it.I seem not to be able through WMIC to "find a relationship" between PHYSICALDRIVEs and LogicalDrives when the device is "Removable".Moreover it seems like the available data go as deep as finding Extended Partitions but not deep enough to find Logical Volumes inside them.Find attached another example, it seems to me that it gathers all available data through WMIC. jaclazgetdriveletters.zip
November 2, 200817 yr Almost, but not quite, completely unrelated symbol2mvol.cmdUses:Listdosdevices:http://www.uwe-sieber.de/drivetools_e.htmlVLM (part of the DSFOK package):http://members.ozemail.com.au/~nulifetv/freezip/freeware/Output sample:C:\Downloaded\victor888>symbol2mvolC: FIX \\.\Volume{b0b284c3-8a33-11dd-8781-806d6172696f} \HarddiskVolume1D: CDR \\.\Volume{80cf88c2-8a34-11dd-813c-806d6172696f} \CdRom0E: FIX \\.\Volume{b0b284c4-8a33-11dd-8781-806d6172696f} \HarddiskVolume2G: REM \\.\Volume{80cf88c4-8a34-11dd-813c-806d6172696f} \Harddisk4\DP(1)0-0+bH: REM \\.\Volume{80cf88c5-8a34-11dd-813c-806d6172696f} \Harddisk5\DP(1)0-0+cI: REM \\.\Volume{80cf88c6-8a34-11dd-813c-806d6172696f} \Harddisk6\DP(1)0-0+dJ: FIX \\.\Volume{98f06d4c-9506-11dd-8147-001fc6bb76ce} \HarddiskVolume3K: FIX \\.\Volume{98f06d4d-9506-11dd-8147-001fc6bb76ce} \HarddiskVolume4L: FIX \\.\Volume{98f06d4e-9506-11dd-8147-001fc6bb76ce} \HarddiskVolume5M: FIX \\.\Volume{98f06d4f-9506-11dd-8147-001fc6bb76ce} \HarddiskVolume6N: REM \\.\Volume{80cf88c3-8a34-11dd-813c-806d6172696f} \Harddisk3\DP(1)0-0+aS: REM \\.\Volume{5d3e8800-9c1f-11dd-8148-001fc6bb76ce} \Harddisk2\DP(1)0-0+5Runnning listdosdevices with a /? parameters outputs a mess of data, maybe it can be useful. A similar app is dosdev:http://www.ltr-data.se/opencode.htmland on the same page there is devioctl.Devioctl with the GEOMETRY <drive> parameters gives the needed info, <drive> can be:drive letterPhysicalDriven(but it won't work -obviously- for Removable devices where no media is inserted )jaclazsymbol2mvol.cmd Edited November 2, 200817 yr by jaclaz
November 4, 200817 yr Author I found one more powerfull disk tool here: http://technet.microsoft.com/zh-cn/sysinte...648(en-us).aspxDiskExt v1.1 which gives each disk it mount volume and drive letters.
November 4, 200817 yr DiskExt v1.1 which gives each disk it mount volume and drive letters.Yep , but it won't give you ANY more info than mountvol for Removable devices like SD card readers when there is no media in them.....A more useful app is the dd for windows version by John Newbigin:http://www.chrysocome.net/ddtry running dd --listjaclaz Edited November 4, 200817 yr by jaclaz
November 4, 200817 yr Almost, but not quite, completely unrelated symbol2mvol.cmdNice presentation Thanks for this HANDY Program wimb
November 5, 200817 yr Author In fact ervery thing about disk information is in the registry. I will try to get my answer there and not use others tool.
November 8, 200817 yr Author Diskpart and fsutil are no longer needed.I found the secret in registry.I am compositing the batch now.
November 9, 200817 yr Diskpart and fsutil are no longer needed.I found the secret in registry.I am compositing the batch now.GOOD news. jaclaz
November 19, 200817 yr Hi Jaclaz, function have been added.http://www.msfn.org/board/Switching-drive-...rs-t125992.htmlWim Edited November 21, 200817 yr by wim
Create an account or sign in to comment