Discuss Autorun USB Flash drive in the Storage Devices forum on Dev Hardware. Autorun USB Flash drive Storage Devices forum discussing storage such as hard drives, flash drives, floppy and Zip drives, CD burners and DVD writers. Troubleshoot hard drive errors and bad sectors. Discuss brands such as Maxtor, Seagate, Western Digital, Pioneer, and Sony.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today. .
Posts: 3
Time spent in forums: 22 m 3 sec
Reputation Power: 0
Autorun USB Flash drive
I am trying to make my flash drive autorun. I have tried to make an autorun.inf file and configured it but it won't start the program automatically. It changes the icon and it will give an option to boot from that file but I cannot get it to autorun without any user interaction. After about 3 days of research I decided to put it to the experts.
This is what I have. http://www.microsoft.com/whdc/device/storage/usbfaq.mspx
Q: What must I do to trigger Autorun on my USB storage device?
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.
How do I change this SCSI Inquiry command? I dont know where to start.
Location: Romania - Târgu Mureş - the one and only
Posts: 4,818
Time spent in forums: 3 Years 5 Months 1 Week 5 Days 7 h 50 m 16 sec
Reputation Power: 17901
You can do it with a simple autorun file. Open notepad copy the below statement, save the file in your root USB directory with the filename "autorun.inf" and make sure you change the setup.exe to your program path and name that you want to run.
“Greatness, combined with the hint of a 24-carat lifestyle, is within us striving to make it through, craving for attention,
and in the end, recognition, leaving a record worthy of biography on forging success stories.” —ME Check out MadHyeNa's Article Index. Visit PrimeRanks - We Rank You Into Pole-Position! I succeed, conquer, and achieve, therefore I am.™
Posts: 3
Time spent in forums: 22 m 3 sec
Reputation Power: 0
Thanks for your post but I have already tried this. That is why I posted the microsoft explanation of this. The autorun.inf won't work for my flash drive.
Posts: 1,349
Time spent in forums: 2 Weeks 5 Days 21 h 31 m 14 sec
Reputation Power: 2545
USB pen drives will not autorun programs. I think it is because USB pen drives are considered to be be regular hard drives by Windows. Autorun was designed for CD/DVD drives. You need a seperate program to do this. I tried a shareware program I found and now my USB drive autoruns a program when the drive is inserted.
Autorun USB v1.4
http://www.usbsoftware.co.uk/products.html
__________________
Gigabyte GA-990FXA-UD3 | AMD Phenom II X4 955 | Corsair H60 Cooler | GSkill RipjawsX (2x2GB) | ASUS GeForce GTX 560 | WD Caviar Blue 1TB | Seagate 750GB |
ASUS 24X DVD/RW| Windows 7 Ultimate
ASUS M4N82 Deluxe | AMD Phenom II X4 960T | Corsair XMS2(2x2GB) | PNY GeForce GTS 250 (1GB) | Seagate 300GB | Maxtor 200GB/250GB | Memorex 20X DVD/RW |
Windows 7 Home Premium
Posts: 5,872
Time spent in forums: 1 Month 2 Weeks 53 m 14 sec
Reputation Power: 12620
While you can't enable the Autorun feature, there are a number of programs available that will autolaunch a selected program when you insert your USB device. Unfortunately, this would need to be installed on every machine that you wanted to "autorun" on.
__________________ Don't like me? Click it.
Scripting problems? Windows questions? Ask the Windows Guru!
Posts: 1
Time spent in forums: 17 m 31 sec
Reputation Power: 0
U3 or not to USB
Theres a way to partition a small part the usb drive so that it reads like a CD - HOW I dont know yet..
"A small, 4MB read-only system partition of the U3 drive pretends to be a CD-ROM drive, while the data partition shows up as a regular flash drive. Because Windows is led to believe that the system partition is a CD, U3 takes advantage of the AutoPlay feature in windows to automatically run the U3 LaunchPad and unlock the data partition of the drive."
Go buy a drive with the U3 logo on it (in orange) that should give you a few ideas.. and use Cute FTP to see whats almost not seen.. (3 files in an additional drive letter that shows as a CD)
I make menu's in VB6 for my own needs and edit a program called "the runner" thats on PSC site to do it.. (I wrote it)
It uses a CallUrl function to start the menu program directly (only if you call it autorun.exe) then closes instantly.. (24k program)
autorun.inf (normal inf file to open autorun.bat)
autorun.bat (a VB6 program renamed .bat)
autorun.exe (whatever menu program you want the autorun.bat vb6 program to open)
Rob
Last edited by BERKELUSA : May 21st, 2007 at 10:40 PM.
Reason: link
Posts: 3
Time spent in forums: 11 m 51 sec
Reputation Power: 0
Working Solution
I was unable to get this to work but have since discovered an alternate solution.
I downloaded mypendrive at download dot com
and combined this with an autorun exe program at teapot orcon net nz autorunmaker
These combined allowed me to autorun a powerpoint from a flash drive...at last!
Posts: 1
Time spent in forums: 27 m 59 sec
Reputation Power: 0
autorun from usb
i ahve lookde the post that you got the solution by the combination of myPendrive & autorun.exe, please let me know how to do it because theses days i am facing this same problem.
I have also looking for the tutorial that mentioned to website for autorun from usb.
Posts: 3
Time spent in forums: 11 m 51 sec
Reputation Power: 0
mypendrive
Quote:
Originally Posted by chhavi
i ahve lookde the post that you got the solution by the combination of myPendrive & autorun.exe, please let me know how to do it because theses days i am facing this same problem.
I have also looking for the tutorial that mentioned to website for autorun from usb.
Once you have installed mypendrive (via downloadDOTcom) onto your usb pen, it allows you to select to run an .exe file when you insert the flash drive. Therefore if you use autorun.exe (which can be found if you google teapot orcon autorun nz - it will be one of the top few results) then this .exe file in turn opens the autorun.bat file which in turn autoruns whatever it is you wish to autorun.
Posts: 1
Time spent in forums: 9 m
Reputation Power: 0
Quote:
Originally Posted by Nilpo
There is in fact a way to partition a USB drive to act like a CD. I'll put together a tutorial and post back.
Hi Nilpo,
I know it's an old thread but I've browsed loads of forums and you're the only one I found who said it was possible to partition the USB drive to act like a CD. Does it mean that tweaked USB key would autorun each time it's plugged into any PC or will it work only on the PC I've performed the tweak on?
By the way, couldn't find your tutorial about how to achieve that great feature, could you please give me the url?
Many thanks,
Cyril
LOADING INFUSIONSOFTLOADING INFUSIONSOFT 1debug:overlay status: OFF overlay not displayed
overlay cookie defined: TI_CAMPAIGN_1012_D
OVERLAY COOKIE set:
status off