Help - Search - Members - Calendar
Full Version: set drive letter of winpe drive to y: (utility)
The CD Forum > The CD Forum > Windows PE
pitti

x: is the drive letter of winpe (ramdisk)

but the drive letter of winpe drive is different. maybe c: ... e: ... or f: ?

run my utility and the drive letter of winpe disk is y: always.

sample of winpeshl.ini:
[LaunchApps]
setlw.exe
cmd.exe


attention: set the label of winpe drive (usb stick or usb hdd) to "something_pe_something" (sample: "usb_pe_") !!!

64bit version of setlw.exe available on request... cool.gif

joakim
If your app is using a different method than this; http://www.msfn.org/board/topic/149173-win...-c-or-anything/ (registry tweak) then I would like you to also outline what your app actually does. Thanks.
pitti
QUOTE (joakim @ Jun 17 2011, 07:35 PM) *
If your app is using a different method than this; http://www.msfn.org/board/topic/149173-win...-c-or-anything/ (registry tweak) then I would like you to also outline what your app actually does. Thanks.


it is an alternative method compared to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices . but better.

the winpe systemroot is x: normally. but the winpe bootdrive is different!
jaclaz
QUOTE (pitti @ Jun 20 2011, 08:37 AM) *
it is an alternative method compared to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices . but better.

the winpe systemroot is x: normally. but the winpe bootdrive is different!


Sure smile.gif, the question joakim asked (and that I am now asking too) is actually:
QUOTE
Can you detail WHAT your nice utility does?


For the record, this ONLY applies to PE 2.x and 3.x (Vista ph34r.gif or Windows 7 based), right?

cheers.gif
jaclaz
pitti
QUOTE (jaclaz @ Jun 20 2011, 10:05 AM) *
Sure smile.gif, the question joakim asked (and that I am now asking too) is actually:


For the record, this ONLY applies to PE 2.x and 3.x (Vista ph34r.gif or Windows 7 based), right?

cheers.gif
jaclaz



its simple winapi...

1. GetVolumePathNamesForVolumeName
---> search label "*_pe_" and read VolumeMountPoint
2. DeleteVolumeMountPoint (remove drive letter)
3. SetVolumeMountPointA (set drive letter to y:)

should work in old xp pe also (but not tested).
jaclaz
QUOTE (pitti @ Jun 20 2011, 12:34 PM) *
its simple winapi...

1. GetVolumePathNamesForVolumeName
---> search label "*_pe_" and read VolumeMountPoint
2. DeleteVolumeMountPoint (remove drive letter)
3. SetVolumeMountPointA (set drive letter to y:)

should work in old xp pe also (but not tested).


Good smile.gif, and where are those settings "deleted from" and "written to"? (I mean if not to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices ? dubbio.gif)

Isn't this the same as running MOUNTVOL?

Like:
CODE
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
MOUNTVOL %1 /L
IF %1.==. GOTO :ERROR
IF %2.==. GOTO :ERROR

FOR /F %%A IN ('MOUNTVOL %1 /L') DO (
ECHO MOUNTVOL %1 /D
MOUNTVOL %1 /D
ECHO MOUNTVOL %2 %%A
MOUNTVOL %2 %%A
)
ECHO.

MOUNTVOL %2 /L
GOTO :EOF

:ERROR
ECHO "NO or WRONG parameter specified"


cheers.gif
jaclaz
paraglider
Why are you giving the guy a hard time? He wrote a utility that is easy to use ( it takes no params ) and I presume it works. Either use it or don't use it.
jaclaz
QUOTE (paraglider @ Jun 21 2011, 01:13 AM) *
Why are you giving the guy a hard time? He wrote a utility that is easy to use ( it takes no params ) and I presume it works. Either use it or don't use it.

I am not trying to give him a hard time, I am sorry if it sounded like that sad.gif blush.gif.

I am only trying to understand what it does, and how it does it. smile.gif

Or, if you prefer, joakim here:
http://www.msfn.org/board/topic/149173-win...-c-or-anything/
posted about a new (AFAICR) interesting approach, and I was trying to understand whether the present thread may be useful for that or it simply represents (as it does) a nice worship.gif tool to do something we already know about.

cheers.gif
Wonko
joakim
Like jaclaz (including myself) is trying to say, is it would be nice and informative for current and future reference if you would describe in detail what your tool actually does and how it does it. I ask because I'm interested in learning new things.. smile.gif

Joakim
Kullenen_Ask
memset..MSVCRT.dll....GetModuleHandleA....HeapCreate..(.FindFirstVolumeA..|.GetV
olumeInformationA...GetVolumePathNamesForVolumeNameA....DeleteVolumeMountPointA.$.SetVolumeMountPointA..3.FindNextVolumeA.;.FindVolumeClose...HeapDestroy...
ExitProcess.KERNEL32.dll..+.Sleep...HeapAlloc...HeapFree....HeapReAlloc...StrStrI
A..SHELL32.DLL...timeBeginPeriod...timeEndPeriod.WINMM.DLL

should be informative
joakim
QUOTE (Kullenen_Ask @ Jun 25 2011, 01:07 AM) *
memset..MSVCRT.dll....GetModuleHandleA....HeapCreate..(.FindFirstVolumeA..|.GetV
olumeInformationA...GetVolumePathNamesForVolumeNameA....DeleteVolumeMountPointA.$.SetVolumeMountPointA..3.FindNextVolumeA.;.FindVolumeClose...HeapDestroy...
ExitProcess.KERNEL32.dll..+.Sleep...HeapAlloc...HeapFree....HeapReAlloc...StrStr
I
A..SHELL32.DLL...timeBeginPeriod...timeEndPeriod.WINMM.DLL

should be informative


Kind of. But instead of spending time on reverse engeneering the app, I would like the author to explain the stuff himself/herself.
paraglider
He already did in post 5. Exactly the same way as I use and which is documented by MS.

See here for details:

http://msdn.microsoft.com/en-us/library/aa...v=VS.85%29.aspx

redrose
This is nice! Thank you very much for this utility.

Could you post or email 64 bit version?

Ed_P
QUOTE (redrose @ Jan 9 2013, 02:36 AM) *
Could you post or email 64 bit version?

Sure. What's you're email address? Or your home address if you want a CD? Which 64 bit PE do you want? Win 8, Win 7, XP, Server edition?
redrose
QUOTE (Ed_P @ Jan 9 2013, 02:23 PM) *
Sure. What's you're email address? Or your home address if you want a CD? Which 64 bit PE do you want? Win 8, Win 7, XP, Server edition?


I was referring to 64 bit version of this utility: setlw.zip ( 1.31K )
that was the subject of the post by Pitty.
Ed_P
Good to hear. I was being facetious with my prior reply. blush.gif
pitti
QUOTE (redrose @ Jan 10 2013, 05:57 PM) *
I was referring to 64 bit version of this utility: setlw.zip ( 1.31K )
that was the subject of the post by Pitty.


please.. happy62.gif .
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.