I need to create a batch file that would change the drive letter of my CD
drive before running a certain program and then reverse the change when I
exit the program.
"Jeff" <jeff@naol.com> wrote in message
news:Ochrbn3eHHA.2640@TK2MSFTNGP06.phx.gbl...
> Using XP Home SP-2.
>
> I need to create a batch file that would change the drive letter of my CD
> drive before running a certain program and then reverse the change when I
> exit the program.
>
> Is that possible? How do I do that?
>
> Jeff
>
>
Assuming that the volume name of your CD drive is
\\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
and the drive letter E:, the commands would be
mountvol E: /d
mountvol F: \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
You can find out the correct volume name by typing mountvol.exe at
the Command Prompt.
Pegasus (MVP) wrote:
> "Jeff" <jeff@naol.com> wrote in message
> news:Ochrbn3eHHA.2640@TK2MSFTNGP06.phx.gbl...
>> Using XP Home SP-2.
>>
>> I need to create a batch file that would change the drive letter of
>> my CD drive before running a certain program and then reverse the
>> change when I exit the program.
>>
>> Is that possible? How do I do that?
>>
>> Jeff
>>
>>
>
> Assuming that the volume name of your CD drive is
> \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> and the drive letter E:, the commands would be
>
> mountvol E: /d
> mountvol F: \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> You can find out the correct volume name by typing mountvol.exe at
> the Command Prompt.
>
> A simpler method would go like this:
>
> subst F: E:\
Pegasus (MVP) wrote:
> "Jeff" <jeff@naol.com> wrote in message
> news:Ochrbn3eHHA.2640@TK2MSFTNGP06.phx.gbl...
>> Using XP Home SP-2.
>>
>> I need to create a batch file that would change the drive letter of
>> my CD drive before running a certain program and then reverse the
>> change when I exit the program.
>>
>> Is that possible? How do I do that?
>>
>> Jeff
>>
>>
>
> Assuming that the volume name of your CD drive is
> \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> and the drive letter E:, the commands would be
>
> mountvol E: /d
> mountvol F: \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> You can find out the correct volume name by typing mountvol.exe at
> the Command Prompt.
>
> A simpler method would go like this:
>
> subst F: E:\
Thank you. I am a true novice at this.
Assuming my true CD drive is E: and I want another drive (G to appear to
be E:
would the batch file have:
subt K: E:\
subt E: G:\
and could I then just follow by entering the path of the program to start?
This is for a handicapped child with cerebral palsy who uses the mouse to
play her games but cannot manipulate well enough to change CDs without
breaking the CD tray. I have created virtual CD drives for her using Alcohol
120% and installed her games from images on these drives. But there are
some games that still popup to ask for the CD to be in the CD drive (even
though they were installed from the mounted virtual drive images) and I
thought if I could change the drive names that might solve that obstacle.
I may sound like I know what I am doing but I really am new at this. I'm
just trying to help her out as best I can.
Pegasus (MVP) wrote:
> "Jeff" <jeff@naol.com> wrote in message
> news:Ochrbn3eHHA.2640@TK2MSFTNGP06.phx.gbl...
>> Using XP Home SP-2.
>>
>> I need to create a batch file that would change the drive letter of
>> my CD drive before running a certain program and then reverse the
>> change when I exit the program.
>>
>> Is that possible? How do I do that?
>>
>> Jeff
>>
>>
>
> Assuming that the volume name of your CD drive is
> \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> and the drive letter E:, the commands would be
>
> mountvol E: /d
> mountvol F: \\?\Volume{f9d9b801-63d8-11da-89fa-806d6172696f}\
> You can find out the correct volume name by typing mountvol.exe at
> the Command Prompt.
>
> A simpler method would go like this:
>
> subst F: E:\
Just wanted to add, she bought and owns all these games. It's just that she
has a problem changing CDs.
> Just wanted to add, she bought and owns all these games. It's just that
> she has a problem changing CDs.
LOL, anyone who would come in here with that kind of argument...even before
you noted this...needs a swift kick in the dangly bits. :-)
Check out Windows Help for details on the SUBST command. Also, you'll need
to type those commands precisely...'SUBT' isn't going to bring joy, just
error messages.
If you run into any trouble making these batch files, please get back to the
group. I'm certain there's a programmer or two out there who could whip up a
set of working batches ready to plop onto the girl's desktop in the time it
takes to type it.
This is where someone buys extra good karma with their skills... ;-)
JohnO wrote:
>> Just wanted to add, she bought and owns all these games. It's just
>> that she has a problem changing CDs.
>
> LOL, anyone who would come in here with that kind of argument...even
> before you noted this...needs a swift kick in the dangly bits. :-)
Huh?
> Check out Windows Help for details on the SUBST command. Also, you'll
> need to type those commands precisely...'SUBT' isn't going to bring
> joy, just error messages.
Thanks for picking that up. I said I was a novice at this.
I will look up WIndows help and see what I can learn.
I was just trying to get "instant help" without digging into books and
relearning the wheel.
> If you run into any trouble making these batch files, please get back
> to the group. I'm certain there's a programmer or two out there who
> could whip up a set of working batches ready to plop onto the girl's
> desktop in the time it takes to type it.
That's what I was hoping for ;-) .
Jeff
> This is where someone buys extra good karma with their skills... ;-)
>
> -John O
>>> Just wanted to add, she bought and owns all these games. It's just
>>> that she has a problem changing CDs.
>>
>> LOL, anyone who would come in here with that kind of argument...even
>> before you noted this...needs a swift kick in the dangly bits. :-)
>
> Huh?
I meant the people you were saying that to....not you Jeff! Sorry.