Storage Devices
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsHARDWAREStorage Devices
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!

Download and Activate to enter!
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. .

Download to Enter | Contest Rules

Learn More!

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old March 15th, 2006, 08:36 AM
blake.arnold blake.arnold is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 blake.arnold User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 3 sec
Reputation Power: 0
Question 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.

Any help would be greatly appreciated.

Thanks in advance

Reply With Quote
  Trader Rating: 4 · #2  
Old March 15th, 2006, 08:45 AM
madhyena's Avatar
madhyena madhyena is offline
SץsAםмιи & Wяιτєя
Dev Hardware Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2004
Location: Romania - Târgu Mureş - the one and only
Posts: 4,818 madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)madhyena User rank is General 254th Grade (Above 100000 Reputation Level)  Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1Folding Points: 331155 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Years 5 Months 1 Week 5 Days 7 h 50 m 16 sec
Reputation Power: 17901
Send a message via AIM to madhyena Send a message via MSN to madhyena Send a message via Yahoo to madhyena Send a message via Google Talk to madhyena
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.

[Autorun]
open=setup.exe

or

[autorun]
shellexecute=setup.exe

Visit this address for all the autorun commands, its fairly simple and there is much more you can do.
http://msdn.microsoft.com/library/d...toplay_cmds.asp

Or http://www.phdcc.com/shellrun/autorun.htm for many many more options.

As for booting, this should help someone out
http://www.microsoft.com/whdc/devic...e/usb-boot.mspx. => this one's VERY complex and DETAILED!
__________________

“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.

Reply With Quote
  Trader Rating: 0 · #3  
Old March 15th, 2006, 08:50 AM
blake.arnold blake.arnold is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 blake.arnold User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Please advise regarding SCSI Inquiry command.

Thanks

Reply With Quote
  Trader Rating: 0 · #4  
Old March 15th, 2006, 12:20 PM
MisterEd's Avatar
MisterEd MisterEd is offline
Contributing User
Click here for more information. Click here for more information
 
Join Date: Apr 2004
Location: Huntsville, AL
Posts: 1,349 MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)MisterEd User rank is General 24th Grade (Above 100000 Reputation Level)  Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4Folding Points: 1790449 Folding Title: Super Ultimate Folder - Level 4
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
Comments on this post
Snod Blatter agrees: We appreciate you!!
__________________
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

Reply With Quote
  Trader Rating: 0 · #5  
Old March 15th, 2006, 12:40 PM
blake.arnold blake.arnold is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 3 blake.arnold User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 3 sec
Reputation Power: 0
Well I know that it can be done. I just don't know how to do it that is where I was hopping you could help. I need to change the RMB.

Reply With Quote
  Trader Rating: 0 · #6  
Old March 31st, 2006, 10:13 PM
arenddittmer arenddittmer is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 1 arenddittmer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 39 sec
Reputation Power: 0
Quote:
Originally Posted by blake.arnold
Well I know that it can be done. I just don't know how to do it that is where I was hopping you could help. I need to change the RMB.


Have you tried the (free) Microsoft USB flash drive manager ?
Some reviews say it does not work. I had not had any problems so far

http://www.microsoft.com/downloads/details.aspx?FamilyID=94991901-bfc4-485e-bcae-c9df0accdaae&DisplayLang=en

Reply With Quote
  Trader Rating: 3 · #7  
Old April 3rd, 2006, 05:36 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Hardware God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2004
Location: New Springfield, OH
Posts: 5,872 Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)  Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 2 Weeks 53 m 14 sec
Reputation Power: 12620
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
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!

Stay up to date with all of my latest content. Follow me on Twitter!

Help us help you! Post your exact error message with these easy tips!

Reply With Quote
  Trader Rating: 0 · #8  
Old May 21st, 2007, 10:10 PM
BERKELUSA BERKELUSA is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 1 BERKELUSA User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  Trader Rating: 0 · #9  
Old March 6th, 2008, 05:21 AM
lewismc lewismc is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 lewismc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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!

Reply With Quote
  Trader Rating: 3 · #10  
Old March 13th, 2008, 10:37 AM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Hardware God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2004
Location: New Springfield, OH
Posts: 5,872 Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)Nilpo User rank is General 175th Grade (Above 100000 Reputation Level)  Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 600103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 2 Weeks 53 m 14 sec
Reputation Power: 12620
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
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.

Reply With Quote
  Trader Rating: 0 · #11  
Old March 14th, 2008, 05:48 AM
lewismc lewismc is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 lewismc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 51 sec
Reputation Power: 0
Look Forward to it

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.


Looking forward to that ... thanks

Reply With Quote
  Trader Rating: 0 · #12  
Old March 28th, 2008, 08:21 AM
chhavi chhavi is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 1 chhavi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
  Trader Rating: 0 · #13  
Old March 28th, 2008, 09:47 AM
lewismc lewismc is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 3 lewismc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Hope this helps, sorry I cant post URLs.

Reply With Quote
  Trader Rating: 0 · #14  
Old October 20th, 2010, 08:27 AM
wazzzzza wazzzzza is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 1 wazzzzza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  Trader Rating: 0 · #15  
Old July 14th, 2011, 08:39 AM
oscoousb oscoousb is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Posts: 1 oscoousb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 34 sec
Reputation Power: 0
auto-run file

hi.everyone!
auto-run file you only need make .txt file then save file on usb pen drives.
original:oscoousb

Reply With Quote
Reply

Viewing: Dev Hardware ForumsHARDWAREStorage Devices > Autorun USB Flash drive


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap
LOADING INFUSIONSOFTLOADING INFUSIONSOFT 1debug:overlay status: OFF
overlay not displayed overlay cookie defined: TI_CAMPAIGN_1012_D OVERLAY COOKIE set:
status off