473,549 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

USB Flash AutoRun

Hi all

I wanna run my application directly from a Flash Disk.

I want it AUTORUN once the device is attached.
I have seen some virus script-programs which create their own autoruns
on a specific Flash Disk device.

It would be very thankful If anyone could tell me about it.

Thanks in advance ...
TMWin

Jun 28 '07 #1
2 3168
tmWin <tm****@gmail.c omwrote in news:1183057112 .766023.37590
@g37g2000prf.go oglegroups.com:
Hi all

I wanna run my application directly from a Flash Disk.

I want it AUTORUN once the device is attached.
I have seen some virus script-programs which create their own autoruns
on a specific Flash Disk device.

It would be very thankful If anyone could tell me about it.

Just create an autorun.inf and it'll launch whatever program you specify.
Jun 28 '07 #2
Just create an autorun.inf and it'll launch whatever program you specify.

Nope not from a flash disk or USB device

see this link http://www.microsoft.com/whdc/devic...age/usbfaq.mspx for
full details

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 StorageDevicePr operty request.

For more information about the SCSI Inquiry command, see the T10 committee
located at http://www.t10.org.

For more information about the StorageDevicePr operty, see the
STORAGE_DEVICE_ DESCRIPTOR storage structure in the Windows DDK, located at
http://msdn.microsoft.com/library/d...e656e9a.xml.asp.

For more information on Autorun.inf files see the "Creating an
AutoRun-Enabled Application" article located at
http://msdn.microsoft.com/library/d....asp?frame=true.

regards

Michel Posseth [MCP]

"Spam Catcher" <sp**********@r ogers.comschree f in bericht
news:Xn******** *************** ***********@127 .0.0.1...
tmWin <tm****@gmail.c omwrote in news:1183057112 .766023.37590
@g37g2000prf.go oglegroups.com:
>Hi all

I wanna run my application directly from a Flash Disk.

I want it AUTORUN once the device is attached.
I have seen some virus script-programs which create their own autoruns
on a specific Flash Disk device.

It would be very thankful If anyone could tell me about it.


Just create an autorun.inf and it'll launch whatever program you specify.

Jun 28 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2351
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and without comments is only about 30 lines. Also included a setup.py at the end of the script so you can 'compile' it easily. ...
11
5041
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
2
1501
by: Carl Fenley | last post by:
I am writing a new version of a legacy application. The legacy application comes packaged with end-user data on a CD or DVD. When the end-user inserts the CD, the application is either installed or launches if it is already installed. If the end-user has the application open and inserts a new CD (containing the legacy app), a new instance...
1
4330
by: liznitch | last post by:
I'm trying to create an autorun menu for a disc, using flash. I would like the buttons to open files on the disc. Can anyone tell me how to script this? Thanks. Liz
2
8514
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some one here may be able to answer this simple question. If I burn a CD/DVD and include a file in the root of the burned disk called Autorun.inf and...
0
6108
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too). Much of the contents of this article are tested on Windows XP professional SP2 by the author. Some instances of this article may be altogether...
0
30183
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them...
0
9938
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns on my Windows PC? Ans: Other than Sysinternals Autoruns, there are only a few programs which are good enough to be used when dealing with autoruns....
0
1410
by: sharoo4000 | last post by:
I have made autorun CD. Which contains jpeg images in same folder where .exe file is present. I want them to hide or want to make presentation in 1 file on AUTORUN CD? Can i do this if yes how?
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.