DVD/CD Drive letter

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Guest
Using nLite to create Windows XP Pro SP driver DVD/CD. The reason I change
the drive letters sfter install is I stick to a standard which works best
with the range of hardware (sometimes 1 HDD, other times more) including
various USB devices.
 
Re: DVD/CD Drive letter


"Jason" <JAllen@Hotmail.com> wrote in message
news:OZIMTd6GJHA.4760@TK2MSFTNGP05.phx.gbl...
> Using nLite to create Windows XP Pro SP driver DVD/CD. The reason I change
> the drive letters sfter install is I stick to a standard which works best
> with the range of hardware (sometimes 1 HDD, other times more) including
> various USB devices.


And your question is?
 
Re: DVD/CD Drive letter

How to do this change as part of the nLite install instead of after XP is
installed.
"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:efzoYs6GJHA.4408@TK2MSFTNGP06.phx.gbl...
>
> "Jason" <JAllen@Hotmail.com> wrote in message
> news:OZIMTd6GJHA.4760@TK2MSFTNGP05.phx.gbl...
>> Using nLite to create Windows XP Pro SP driver DVD/CD. The reason I
>> change the drive letters sfter install is I stick to a standard which
>> works best with the range of hardware (sometimes 1 HDD, other times more)
>> including various USB devices.

>
> And your question is?
>
 
Re: DVD/CD Drive letter


"Jason" <JAllen@Hotmail.com> wrote in message
news:ujl7Zx6GJHA.2408@TK2MSFTNGP04.phx.gbl...
> How to do this change as part of the nLite install instead of after XP is
> installed.
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:efzoYs6GJHA.4408@TK2MSFTNGP06.phx.gbl...
>>
>> "Jason" <JAllen@Hotmail.com> wrote in message
>> news:OZIMTd6GJHA.4760@TK2MSFTNGP05.phx.gbl...
>>> Using nLite to create Windows XP Pro SP driver DVD/CD. The reason I
>>> change the drive letters sfter install is I stick to a standard which
>>> works best with the range of hardware (sometimes 1 HDD, other times
>>> more) including various USB devices.

>>
>> And your question is?
>>


I don't know nLite but the usual way to change a drive letter is via
diskmgmt.msc. If you want to script the process then you can do it in a
batch file by using mountvol.exe to unmount, then remount the CD device with
the desired drive letter.
 
Re: DVD/CD Drive letter

I can use mountvol /d but how do I find the current drive letter (each
computer could have different drives/partitions)? Also how would I remount
it? Once I know the letter I could use:
mountvol %DRIVE% /l >c:\temp\VOL.txt
mountvol %DRIVE% /d
mountvol <c:\temp\VOL.txt L:
Although the last line might not work since there is a variable after the
txt file.
"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:%23FgMC26GJHA.456@TK2MSFTNGP06.phx.gbl...
>
> "Jason" <JAllen@Hotmail.com> wrote in message
> news:ujl7Zx6GJHA.2408@TK2MSFTNGP04.phx.gbl...
>> How to do this change as part of the nLite install instead of after XP is
>> installed.
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:efzoYs6GJHA.4408@TK2MSFTNGP06.phx.gbl...
>>>
>>> "Jason" <JAllen@Hotmail.com> wrote in message
>>> news:OZIMTd6GJHA.4760@TK2MSFTNGP05.phx.gbl...
>>>> Using nLite to create Windows XP Pro SP driver DVD/CD. The reason I
>>>> change the drive letters sfter install is I stick to a standard which
>>>> works best with the range of hardware (sometimes 1 HDD, other times
>>>> more) including various USB devices.
>>>
>>> And your question is?
>>>

>
> I don't know nLite but the usual way to change a drive letter is via
> diskmgmt.msc. If you want to script the process then you can do it in a
> batch file by using mountvol.exe to unmount, then remount the CD device
> with the desired drive letter.
>
 
Re: DVD/CD Drive letter


"Jason" <JAllen@Hotmail.com> wrote in message
news:u7jnEN7GJHA.4596@TK2MSFTNGP06.phx.gbl...
>I can use mountvol /d but how do I find the current drive letter (each
>computer could have different drives/partitions)? Also how would I remount
>it? Once I know the letter I could use:
> mountvol %DRIVE% /l >c:\temp\VOL.txt
> mountvol %DRIVE% /d
> mountvol <c:\temp\VOL.txt L:
> Although the last line might not work since there is a variable after the
> txt file.


You can use this batch file. To make it really robust you should check if
the chosen drive letter is available.

@echo off
set NewLetter=F:
for /F %%a in ('mountvol ^| find ":\"') do call :Sub %%a
echo Changing the CD drive letter from %OldLetter% to %NewLetter%
mountvol %OldLetter% /d
mountvol %NewLetter% %ID%
mountvol
goto :eof

:Sub
fsutil fsinfo drivetype %1 | find /i "CD" || goto :eof
set OldLetter=%1
for /F %%a in ('mountvol') do (
if %1==%%a goto :eof
set ID=%%a
)
 
Re: DVD/CD Drive letter

Thanks,
what would be entered as the paramenter %1?
"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:exvsZo7GJHA.740@TK2MSFTNGP03.phx.gbl...
>
> "Jason" <JAllen@Hotmail.com> wrote in message
> news:u7jnEN7GJHA.4596@TK2MSFTNGP06.phx.gbl...
>>I can use mountvol /d but how do I find the current drive letter (each
>>computer could have different drives/partitions)? Also how would I remount
>>it? Once I know the letter I could use:
>> mountvol %DRIVE% /l >c:\temp\VOL.txt
>> mountvol %DRIVE% /d
>> mountvol <c:\temp\VOL.txt L:
>> Although the last line might not work since there is a variable after the
>> txt file.

>
> You can use this batch file. To make it really robust you should check if
> the chosen drive letter is available.
>
> @echo off
> set NewLetter=F:
> for /F %%a in ('mountvol ^| find ":\"') do call :Sub %%a
> echo Changing the CD drive letter from %OldLetter% to %NewLetter%
> mountvol %OldLetter% /d
> mountvol %NewLetter% %ID%
> mountvol
> goto :eof
>
> :Sub
> fsutil fsinfo drivetype %1 | find /i "CD" || goto :eof
> set OldLetter=%1
> for /F %%a in ('mountvol') do (
> if %1==%%a goto :eof
> set ID=%%a
> )
>
>
 
Re: DVD/CD Drive letter

Nothing - it's all set here:
@echo off
set NewLetter=F:

"Jason" <Jason@hotmail.com> wrote in message
news:uwUG1z7GJHA.944@TK2MSFTNGP03.phx.gbl...
> Thanks,
> what would be entered as the paramenter %1?
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:exvsZo7GJHA.740@TK2MSFTNGP03.phx.gbl...
>>
>> "Jason" <JAllen@Hotmail.com> wrote in message
>> news:u7jnEN7GJHA.4596@TK2MSFTNGP06.phx.gbl...
>>>I can use mountvol /d but how do I find the current drive letter (each
>>>computer could have different drives/partitions)? Also how would I
>>>remount it? Once I know the letter I could use:
>>> mountvol %DRIVE% /l >c:\temp\VOL.txt
>>> mountvol %DRIVE% /d
>>> mountvol <c:\temp\VOL.txt L:
>>> Although the last line might not work since there is a variable after
>>> the txt file.

>>
>> You can use this batch file. To make it really robust you should check if
>> the chosen drive letter is available.
>>
>> @echo off
>> set NewLetter=F:
>> for /F %%a in ('mountvol ^| find ":\"') do call :Sub %%a
>> echo Changing the CD drive letter from %OldLetter% to %NewLetter%
>> mountvol %OldLetter% /d
>> mountvol %NewLetter% %ID%
>> mountvol
>> goto :eof
>>
>> :Sub
>> fsutil fsinfo drivetype %1 | find /i "CD" || goto :eof
>> set OldLetter=%1
>> for /F %%a in ('mountvol') do (
>> if %1==%%a goto :eof
>> set ID=%%a
>> )
>>
>>

>
>
 
Re: DVD/CD Drive letter

Thanks,
I've created the batch file but not sure it will run. For the command to
run, should that be \path\filename.bat?

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:ui%238P37GJHA.3884@TK2MSFTNGP02.phx.gbl...
> Nothing - it's all set here:
> @echo off
> set NewLetter=F:
>
> "Jason" <Jason@hotmail.com> wrote in message
> news:uwUG1z7GJHA.944@TK2MSFTNGP03.phx.gbl...
>> Thanks,
>> what would be entered as the paramenter %1?
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:exvsZo7GJHA.740@TK2MSFTNGP03.phx.gbl...
>>>
>>> "Jason" <JAllen@Hotmail.com> wrote in message
>>> news:u7jnEN7GJHA.4596@TK2MSFTNGP06.phx.gbl...
>>>>I can use mountvol /d but how do I find the current drive letter (each
>>>>computer could have different drives/partitions)? Also how would I
>>>>remount it? Once I know the letter I could use:
>>>> mountvol %DRIVE% /l >c:\temp\VOL.txt
>>>> mountvol %DRIVE% /d
>>>> mountvol <c:\temp\VOL.txt L:
>>>> Although the last line might not work since there is a variable after
>>>> the txt file.
>>>
>>> You can use this batch file. To make it really robust you should check
>>> if the chosen drive letter is available.
>>>
>>> @echo off
>>> set NewLetter=F:
>>> for /F %%a in ('mountvol ^| find ":\"') do call :Sub %%a
>>> echo Changing the CD drive letter from %OldLetter% to %NewLetter%
>>> mountvol %OldLetter% /d
>>> mountvol %NewLetter% %ID%
>>> mountvol
>>> goto :eof
>>>
>>> :Sub
>>> fsutil fsinfo drivetype %1 | find /i "CD" || goto :eof
>>> set OldLetter=%1
>>> for /F %%a in ('mountvol') do (
>>> if %1==%%a goto :eof
>>> set ID=%%a
>>> )
>>>
>>>

>>
>>

>
>
 
Re: DVD/CD Drive letter


"Jason" <Jason@hotmail.com> wrote in message
news:eJW3pe3HJHA.4240@TK2MSFTNGP02.phx.gbl...
> Thanks,
> I've created the batch file but not sure it will run. For the command to
> run, should that be \path\filename.bat?
>


Yes, all batch files must have a .bat or a .cmd extension.
 
Re: DVD/CD Drive letter

I know about bat. I was asking about using the directory and no drive
letter.
Thanks,
J.
"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:OOSswh8HJHA.1364@TK2MSFTNGP04.phx.gbl...
>
> "Jason" <Jason@hotmail.com> wrote in message
> news:eJW3pe3HJHA.4240@TK2MSFTNGP02.phx.gbl...
>> Thanks,
>> I've created the batch file but not sure it will run. For the command to
>> run, should that be \path\filename.bat?
>>

>
> Yes, all batch files must have a .bat or a .cmd extension.
>
 
Re: DVD/CD Drive letter


"Jason" <Jason@hotmail.com> wrote in message
news:%231gkOFBIJHA.1968@TK2MSFTNGP06.phx.gbl...
>I know about bat. I was asking about using the directory and no drive
>letter.
> Thanks,
> J.


Sorry, you've left me behind. Please rephrase/expand your question.
 
Re: DVD/CD Drive letter

If the batch file is called as %CDDRIVE%:\path\filename.bat after windows is
installed then do I just use \path\filename.bat as the filename in nLite
runonce commands?
"Jason" <Jason@hotmail.com> wrote in message
news:%231gkOFBIJHA.1968@TK2MSFTNGP06.phx.gbl...
>I know about bat. I was asking about using the directory and no drive
>letter.
> Thanks,
> J.
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:OOSswh8HJHA.1364@TK2MSFTNGP04.phx.gbl...
>>
>> "Jason" <Jason@hotmail.com> wrote in message
>> news:eJW3pe3HJHA.4240@TK2MSFTNGP02.phx.gbl...
>>> Thanks,
>>> I've created the batch file but not sure it will run. For the command to
>>> run, should that be \path\filename.bat?
>>>

>>
>> Yes, all batch files must have a .bat or a .cmd extension.
>>

>
>
 
Re: DVD/CD Drive letter

I've been following this thread with some interest and I'm amused about your
most recent reply/clarification. As we say around here, it is about as clear
as mud. Pegasus would have to be a real smart cookie to understand what you
are talking about. How about explaining the whole issue to a friend, then
asking him to translate it into a comprehensible question?


"Jason" <JAllen@Hotmail.com> wrote in message
news:OQs2zLCIJHA.3736@TK2MSFTNGP06.phx.gbl...
> If the batch file is called as %CDDRIVE%:\path\filename.bat after windows

is
> installed then do I just use \path\filename.bat as the filename in nLite
> runonce commands?
> "Jason" <Jason@hotmail.com> wrote in message
> news:%231gkOFBIJHA.1968@TK2MSFTNGP06.phx.gbl...
> >I know about bat. I was asking about using the directory and no drive
> >letter.
> > Thanks,
> > J.
> > "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> > news:OOSswh8HJHA.1364@TK2MSFTNGP04.phx.gbl...
> >>
> >> "Jason" <Jason@hotmail.com> wrote in message
> >> news:eJW3pe3HJHA.4240@TK2MSFTNGP02.phx.gbl...
> >>> Thanks,
> >>> I've created the batch file but not sure it will run. For the command

to
> >>> run, should that be \path\filename.bat?
> >>>
> >>
> >> Yes, all batch files must have a .bat or a .cmd extension.
> >>

> >
> >

>
>
 
Re: DVD/CD Drive letter

This is clear!
"Monitor" <nospam@spam.com> wrote in message
news:uYBI9rHIJHA.1936@TK2MSFTNGP06.phx.gbl...
> I've been following this thread with some interest and I'm amused about
> your
> most recent reply/clarification. As we say around here, it is about as
> clear
> as mud. Pegasus would have to be a real smart cookie to understand what
> you
> are talking about. How about explaining the whole issue to a friend, then
> asking him to translate it into a comprehensible question?
>
>
> "Jason" <JAllen@Hotmail.com> wrote in message
> news:OQs2zLCIJHA.3736@TK2MSFTNGP06.phx.gbl...
>> If the batch file is called as %CDDRIVE%:\path\filename.bat after windows

> is
>> installed then do I just use \path\filename.bat as the filename in nLite
>> runonce commands?
>> "Jason" <Jason@hotmail.com> wrote in message
>> news:%231gkOFBIJHA.1968@TK2MSFTNGP06.phx.gbl...
>> >I know about bat. I was asking about using the directory and no drive
>> >letter.
>> > Thanks,
>> > J.
>> > "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> > news:OOSswh8HJHA.1364@TK2MSFTNGP04.phx.gbl...
>> >>
>> >> "Jason" <Jason@hotmail.com> wrote in message
>> >> news:eJW3pe3HJHA.4240@TK2MSFTNGP02.phx.gbl...
>> >>> Thanks,
>> >>> I've created the batch file but not sure it will run. For the command

> to
>> >>> run, should that be \path\filename.bat?
>> >>>
>> >>
>> >> Yes, all batch files must have a .bat or a .cmd extension.
>> >>
>> >
>> >

>>
>>

>
>
 
Re: DVD/CD Drive letter


"Jason" <JAllen@Hotmail.com> wrote in message
news:OQs2zLCIJHA.3736@TK2MSFTNGP06.phx.gbl...
> If the batch file is called as %CDDRIVE%:\path\filename.bat after windows
> is installed then do I just use \path\filename.bat as the filename in
> nLite runonce commands?


Sorry, I cannot understand what you mean.
 
Back
Top