HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-10-2007, 03:10 PM
Jeff
 
Posts: n/a
Default Batch file to change Drive name

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


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 04-10-2007, 03:17 PM
Pegasus \(MVP\)
 
Posts: n/a
Default Re: Batch file to change Drive name


"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:\


Reply With Quote
  #3  
Old 04-10-2007, 03:59 PM
Jeff
 
Posts: n/a
Default Re: Batch file to change Drive name

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:\




Reply With Quote
  #4  
Old 04-10-2007, 04:08 PM
Jeff
 
Posts: n/a
Default Re: Batch file to change Drive name

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.

Jeff


Reply With Quote
  #5  
Old 04-10-2007, 04:11 PM
Jeff
 
Posts: n/a
Default Re: Batch file to change Drive name

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.

Jeff


Reply With Quote
  #6  
Old 04-10-2007, 05:10 PM
JohnO
 
Posts: n/a
Default Re: Batch file to change Drive name

> 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... ;-)

-John O


Reply With Quote
  #7  
Old 04-10-2007, 07:31 PM
Jeff
 
Posts: n/a
Default Re: Batch file to change Drive name

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




Reply With Quote
  #8  
Old 04-10-2007, 10:09 PM
JohnO
 
Posts: n/a
Default Re: Batch file to change Drive name


>>> 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.

-John O




Reply With Quote
Sponsored Links

Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger