The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner

Reply
 
LinkBack Thread Tools Display Modes
Old 04-25-2008, 02:35 PM   #1
Road Runner & Mp3car Gatherings Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 2,911
Autorun from a thumb drive

I am trying to make a program execute when a thumb drive is inserted to send a command to RR. I am not having much luck at all.

I have an autorun.ini on the thumb drive, and have made sure that autorun is turned on in windows.

This is what is in the autorun.inf:
[autorun]
open=AutoRun.exe
icon=AutoRun.ico

On the drive as of now are just the three files, the autorun.ini, autorun.exe and the icon.

the AutoRun.exe presently is just a small script that will open a message box saying "AutoRun Successful". Very basic, just a test for now.

Is there something I am missing here?

BTW, I am trying to get a program to run off of the thumb drive, and not have a program constantly running on the CarPC looking to see if a thumb drive is inserted.
__________________
Front End of Choice: Road Runner (Is there anything else??? )
& Powered by the DigitalFX 4.0 Skin
Available at www.JohnWPB.com

Last edited by JohnWPB; 04-25-2008 at 02:38 PM.
JohnWPB is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 04-25-2008, 03:20 PM   #2
MGD
FLAC
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,440
From MS, the autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application.

The removable media device setting is a flag contained within the SCSI Inquiry Data response to the SCSI Inquiry command. Bit 7 of byte 1 (indexed from 0) is the Removable Media Bit (RMB). A RMB set to zero indicates that the device is not a removable media device. A RMB of one indicates that the device is a removable media device. Drivers obtain this information by using the StorageDeviceProperty request.

Check this out.
http://www.softplatz.com/Soft/Utilit...USB-Drive.html

http://www.totalautorunner.com/

Last edited by MGD; 04-25-2008 at 03:49 PM.
MGD is offline   Reply With Quote
Old 04-25-2008, 03:47 PM   #3
Maximum Bitrate
 
jonessc's Avatar
 
Join Date: Nov 2006
Location: Wales, UK
Posts: 782
I can get a menu to display when a flash drive is inserted by making a custom ini file on the root of the drive, but you have to physically select an option and press ok before it will run any of them (eg install xxx)

Im assuming you already thought on an autoit script to monitor for a flash drive then run your program? (if your interested drop me a pm im sure i got the sourse for something similar made in autoit you could adapt to do this)
__________________
CarPuter Progress:
Planning:-----> [||||||||||] 100%
Hardware Buying:-> [||||||||||] 100%
Software:-----> [||||||||||] 100%
Installing:-----> [||||||||||] 100%
Current Project= Making skins in photoshop...
jonessc is offline   Reply With Quote
Old 04-25-2008, 04:21 PM   #4
Low Bitrate
 
TheSovereign's Avatar
 
Join Date: Feb 2008
Location: Nu Yawwwk
Posts: 63
I have used this Hitachi Microdrive driver to make flash drives appear as a fixed disk.

http://www.xpefiles.com/viewtopic.php?t=92
TheSovereign is offline   Reply With Quote
Old 04-25-2008, 06:13 PM   #5
Road Runner & Mp3car Gatherings Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 2,911
@MGD, I tried out that little program, and it does not seem to like my thumb drive Not sure what it is, but it relies on you unplugging in the drive, pluggint it back in, and then right clicking on the tray icon to choose it to set it up. When I plug it in, no choices appear when right clicking the icon except "help", which just states what I mentioned already.

@Jonessc, yea, I wanted to avoid having a script running constantly checking for the drive to be plugged in. If all else fails, I have a script I wrote some time ago that can do it with some small changes.

@TheSovereign
I just grabbed that driver, there are no instructions whatsoever for its use. I right clicked on the INF and installed it, but not sure what to do next to set anything up. You said you have used this, can you offer any pointers?
__________________
Front End of Choice: Road Runner (Is there anything else??? )
& Powered by the DigitalFX 4.0 Skin
Available at www.JohnWPB.com
JohnWPB is offline   Reply With Quote
Old 04-25-2008, 09:33 PM   #6
MGD
FLAC
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,440
I played with those Hitachi drivers today and it will show up in the drives as fixed drive. You can partition it and everything but as soon you insert it it will go to autorun and you have to click what you want to do. I had a program awhile back which you have to install and it will chek for removable drives and you could have a batchfile execute what ever you want. Let me look for it. I will report back to base........
MGD is offline   Reply With Quote
Old 04-25-2008, 09:58 PM   #7
Newbie
 
Jebus's Avatar
 
Join Date: Dec 2007
Location: Vancouver, Wa.
Posts: 46
Hey John,
Have you seen this?
http://msdn2.microsoft.com/en-us/library/bb776823.aspx
..JJG
Jebus is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 04-26-2008, 08:51 AM   #8
MGD
FLAC
 
MGD's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,440
Again, it does not refer to Removable_Devices.
The only command that is changed is the "action" command, which brings up the AutoPlay window where you can select the ACTION form the window.

[autorun]
title=My Drive
action=Please Click Me
In Vista you get this.
Attached Images
 
MGD is offline   Reply With Quote
Old 04-27-2008, 12:59 AM   #9
Road Runner & Mp3car Gatherings Moderator
 
JohnWPB's Avatar
 
Join Date: Sep 2005
Location: West Palm Beach, Florida
Posts: 2,911
Thanks for all the help! BlueZX3 saw this post and whipped up a little code that fires when a new device has been added to the system. Seems to be working quite well!
__________________
Front End of Choice: Road Runner (Is there anything else??? )
& Powered by the DigitalFX 4.0 Skin
Available at www.JohnWPB.com
JohnWPB is offline   Reply With Quote
Old 04-27-2008, 09:43 AM   #10
FLAC
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Posts: 1,054
Quote: Originally Posted by JohnWPB View Post
Thanks for all the help! BlueZX3 saw this post and whipped up a little code that fires when a new device has been added to the system. Seems to be working quite well!

Please share, I would love this capability as well.
__________________
HELP MY KIDS SCHOOL CLICK HERE
New Age- Garmin Style Skin for RR
"Your two cents are worthless pennies if you consider the exchange rate for my 2 cents"
ThunderStick is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drive enclosures yg17 General Hardware Discussion 3 01-24-2007 09:10 AM
Powering a DVD drive. spoonraker General MP3Car Discussion 6 12-18-2006 02:04 PM
hard drive heads on a 2.5" drive zyzzx General Hardware Discussion 2 03-02-2006 12:09 AM
Hard drive dilema.... 2.5" or 3.5"? 3Tripnip General Hardware Discussion 2 01-14-2006 12:30 AM
Has any one had problems booting from a usb Thumb drive? with a Via mb frankthedruid General Hardware Discussion 3 05-05-2005 06:17 PM


All times are GMT -5. The time now is 03:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics