batch autorun and autoplay

February 6, 2009 at 15:23:24
Specs: XP/Vista, AMD x2 5200+ @2.6 GH
Universal drive letter in a batch script.

Need some help here?
Hello all thank you for reading my post.
I am a computer administrator for a local car dealer in Santa Fe NM. (Santa Fe Mazda Volvo)
We use SD cards to backup customer data. At one point everybody had their own SD cards for their computer. We are now moving SD cards from computer to computer exchanging data.
To make things easier I have written Autorun.ini & autoplay.bat files to the sd card. This way everybody
Could just pop in the card and the root directory would open. Itâ??s very convenient except for the fact that
We are now moving the card around. So the autorun wonâ??t work on some of the computers. Here is the reason why. In the autoplay.bat I assigned the drive letter. Some computers donâ??t assign the same drive to the SD card.
Does anybody know what the batch command for a generic drive letter is?
Years ago I use to know it.
Here is the autoplay and autorun script.
Line 5 is the problem. This is where I need to place a universal drive letter.

1 [autorun]
2 open=autoplay.bat
3 Autoplay.bat

4 @echo off
5 Start g:\
6 exit


See More: batch autorun and autoplay

Report •

February 6, 2009 at 16:41:45
start %~d0\

Report •
Related Solutions

Ask Question