Posted 06 February 2009 - 06:15 PM
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.
4 @echo off
5 Start g:\
" If you want to be the best you better learn how do defend yourself,
Because when you are the best everybody wants to kick you’re a** "
My Dad 1986