PC Review


Reply
Thread Tools Rate Thread

Batch file to change Drive name

 
 
Jeff
Guest
Posts: n/a
 
      10th Apr 2007
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
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Apr 2007

"Jeff" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
Jeff
Guest
Posts: n/a
 
      10th Apr 2007
Pegasus (MVP) wrote:
> "Jeff" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
Jeff
Guest
Posts: n/a
 
      10th Apr 2007
Pegasus (MVP) wrote:
> "Jeff" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
Jeff
Guest
Posts: n/a
 
      10th Apr 2007
Pegasus (MVP) wrote:
> "Jeff" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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
 
JohnO
Guest
Posts: n/a
 
      10th Apr 2007
> 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
 
Jeff
Guest
Posts: n/a
 
      10th Apr 2007
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
 
JohnO
Guest
Posts: n/a
 
      10th Apr 2007

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

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change DVD Drive Letter with Script/batch file? TheMachineRNC Windows XP Setup 2 2nd May 2006 11:36 AM
batch file to map drive from workgroup to domain drive =?Utf-8?B?TWFyaw==?= Microsoft Windows 2000 Networking 2 19th Dec 2005 09:38 PM
Creating a batch file or executable file that will change drive le =?Utf-8?B?VHJhY3kgUC4=?= Windows XP Accessibility 0 16th Jun 2005 11:16 PM
Find Drive Letter for CD-ROM Drive in MS-DOS Batch File =?Utf-8?B?QnJpYW4gTWNHdWlnYW4=?= Windows XP General 1 28th Oct 2004 11:57 PM
Cannot find batch file after change drive letter of ntfs drive in windows xp Jackson Windows XP Setup 1 13th Oct 2003 01:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:29 AM.