Computing.Net > Forums > Programming > batch autorun and autoplay

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch autorun and autoplay

Reply to Message Icon

Name: emuarcade
Date: February 6, 2009 at 15:23:24 Pacific
OS: XP/Vista
CPU/Ram: AMD x2 5200+ @2.6 GH
Product: Clone / CLONE
Subcategory: Batch
Comment:

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.


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


4 @echo off
5 Start g:\
6 exit

Xfactor



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: February 6, 2009 at 16:41:45 Pacific
Reply:

Try:

start %~d0\


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch autorun and autoplay

Batch copy and rename if needed www.computing.net/answers/programming/batch-copy-and-rename-if-needed/14747.html

Batch files and serial ports? www.computing.net/answers/programming/batch-files-and-serial-ports/16989.html

Make an exe with a batch file and.. www.computing.net/answers/programming/make-an-exe-with-a-batch-file-and/17595.html