victor888 Posted August 9, 2009 Author Posted August 9, 2009 (edited) @JaclazI am really glad that you such an expert to test my batch again and again.The !NK! problem I should check again.The diskpart version, I have to say, for multidisk system, diskpart runs slow evern some times hangs.When I have time I will make further update. Thank you very much. Edited August 18, 2009 by victor888
Yzöwl Posted August 9, 2009 Posted August 9, 2009 Thanks for the acknowledgement of my post…Here is the registry export from a test machine using WinPE(Reg Export HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 output.reg)output.regWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2][HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\A]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\B]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\C]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\D]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\E]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\X]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\Y]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c341-8515-11de-9904-806e6f6e6963}]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c344-8515-11de-9904-806e6f6e6963}]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c345-8515-11de-9904-806e6f6e6963}]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c348-8515-11de-9904-806e6f6e6963}]"BaseClass"="Drive"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{d9b257fc-684e-4dcb-ab79-03cfa2f6b750}]"BaseClass"="Drive"It follows therefore that the script line I previously asked about will once again return nothing!…explain please!
victor888 Posted August 10, 2009 Author Posted August 10, 2009 AboveI don't know how to explain it to you. What you need to do is just run the batch under pe, then you could understand everything. Certainly, the some lines under the line you asked also tell what is what.I have to say, my batches have been donloaded and tested by many many people, exceplt Jaclaz last bug feedback, no bug reported. Here is the reference: http://bbs.wuyou.com/viewthread.php?tid=13...;extra=page%3D4
Yzöwl Posted August 10, 2009 Posted August 10, 2009 I've got to be honest here, considering you wrote the code, you're not really helping me much if you cannot explain to me what your intention was for output from a command within it!Your code is looking for \\2 in those subkeys of the mountpoints2 branch. As you can see from both a booted system and a PE environment there is no string using a double backslash never mind one with a 2 followed by one.Since it appears that the registry read is included to replicate the results obtained from the wmic command when that is not available, I expect it to return similar output to that wmic command.Here's a thought! (based purely on my understanding and the result of my real world test with my WinPE disk)If you were to change the Find command within the for to read this:adv=HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\AHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\BHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\DHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\EHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\XHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\YHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c341-8515-11de-9904-806e6f6e6963}HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c344-8515-11de-9904-806e6f6e6963}HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c345-8515-11de-9904-806e6f6e6963}HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{5932c348-8515-11de-9904-806e6f6e6963}HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{d9b257fc-684e-4dcb-ab79-03cfa2f6b750}adv:~-2=\A\B\C\D\E\X\Y3}3}3}3}0}adv:~,1=\\\\\\\33330adv~-1=ABCDEXYThe resulting ALLDRV variable in that scenario would be: A B C D E X YSo since you were unable to explain, and all I have to go from is this statement:For PE, all drive letters are find from registryand this (unuseful to an English speaker) information:I have attempted to show you myself!Therefore:Is your code wrong?Is your code written only for a particular version of WinPE (not mine - Vista based)?Are my systems broken?Do I need to learn batch programming?Am I just wrong?Please…
jaclaz Posted August 11, 2009 Posted August 11, 2009 Is your code written only for a particular version of WinPE (not mine - Vista based)?OT, but not much, at least initially, we were talking about PE 1.x (XP/2003 based) as opposed to PE 2.x (Vista/2008based) or PE 3.x (Windows 7 based). It should always be specified as different versions of PE's are not "the same".jaclaz
Yzöwl Posted August 11, 2009 Posted August 11, 2009 I see so you're updating batch files for an OS which is two generations out of date(it does make me wonder what real use including the following is)ver |find " 6.0">nul &&set TheOS=Vista<snip> if !TheOS! equ Vista set mfile=mountvol_vs.exeMy WinPE 3.0 disk doesn't even contain a MountPoints2 registry branch, in fact the only place I can find my drives mentioned in the registry is here: HKLM\SYSTEM\MountedDevices.
jaclaz Posted August 11, 2009 Posted August 11, 2009 I see so you're updating batch files for an OS which is two generations out of date…Well, personally, I am THREE generations out of date. I thought that using batch files in itself was a declaration in that sense of self-evident relevance. My remark was, as said, sligthly OT and a "general" kind of advice, I have no idea what victor888's intentions are, were or will be. jaclaz
victor888 Posted August 13, 2009 Author Posted August 13, 2009 It is my fault that the batch doesn't consider the PE2.X or PE3.X, only ofr PE 1.0.Pe is only used for maintenance, I think, PE1.X is enough.
Yzöwl Posted August 13, 2009 Posted August 13, 2009 It is my fault that the batch doesn't consider the PE2.X or PE3.X, only ofr PE 1.0.Pe is only used for maintenance, I think, PE1.X is enough.Since PE is supplied for deployment of Windows, and PE 1.x isn't created for deploying Vista, and you provided code for that OS, then I suppose that the fault lies squarely with you!
victor888 Posted January 16, 2011 Author Posted January 16, 2011 Update again, hope somebody like it.
ilko_t Posted September 7, 2011 Posted September 7, 2011 国内下载不到~ 所以跑这里来了This is English speaking forum, please post only in English.
zamarac Posted January 18, 2012 Posted January 18, 2012 (edited) Sorry for my ignorance, which one of the above batches can list unmounted in Win7 volume numbers on a selected attached disk? If none, can someone offer modification here? Edited January 18, 2012 by zamarac
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now