473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to do AutoPlay?

Hi All,

I have a vb.net application program. I want to add AutoPlay function
which can launch the program when user plugging a memory stick in USB
port. How to do that? Please give me some instructions.
Thanks in advance!

Nov 21 '05 #1
4 5510
<ba**********@yahoo.com> schrieb:
I have a vb.net application program. I want to add AutoPlay function
which can launch the program when user plugging a memory stick in USB
port.


I have never tried if "AUTORUN.INF" files work with USB sticks...

"Autorun.inf" Entries
<URL:http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.asp>

However, note that even if that works the .NET Framework must be installed
on the machine in order to be able to execute the application.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
I am sorry. I don't mean "AutoRun". What I want is When memory stick
was plugged, there is a little window showing up automatically and list
some options such as "Run My program", "Copy files to PC", etc., so the
user can select one option. It has something to do with windows
registry. I read the information in MSDN library about " Preparing
Hardware and software for use with AutoPlay", but I need some VB.net
code to implete that functions. Could somebody help me ?
Thanks a lot.

Herfried K. Wagner [MVP] wrote:
<ba**********@yahoo.com> schrieb:
I have a vb.net application program. I want to add AutoPlay function
which can launch the program when user plugging a memory stick in USB
port.


I have never tried if "AUTORUN.INF" files work with USB sticks...

"Autorun.inf" Entries
<URL:http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.asp>

However, note that even if that works the .NET Framework must be installed
on the machine in order to be able to execute the application.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #3
Hi,

Maybe this will help.
http://www.kellys-korner-xp.com/add_burner.htm

Ken
----------------
<ba**********@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi All,

I have a vb.net application program. I want to add AutoPlay function
which can launch the program when user plugging a memory stick in USB
port. How to do that? Please give me some instructions.
Thanks in advance!
Nov 21 '05 #4
On 12 Jul 2005 09:14:23 -0700, ba**********@yahoo.com wrote:

¤ Hi All,
¤
¤ I have a vb.net application program. I want to add AutoPlay function
¤ which can launch the program when user plugging a memory stick in USB
¤ port. How to do that? Please give me some instructions.
¤

I would check out the following:

http://msdn.microsoft.com/library/de...ay2k_using.asp
http://msdn.microsoft.com/library/de...k_cookbook.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #5

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

Similar topics

9
by: torbs | last post by:
Hi I am creating a page for stretchfilm. In this page you can chose between a short medium and long version of the film at any point in the film. It is in norwegian, but just press play. URL:...
2
by: Chad | last post by:
I am in the process of writing an application that detects the insertion of a pen drive, and if a specific folder structure exists, it shows a form containing data. The problem is that when I...
3
by: Richard Steele | last post by:
Hi Does anyone have an API wrappers for the ...
1
by: jonathan184 | last post by:
After moving website to another server flash will not autoplay. The site has alot of flash stuff on other pages and all the flash works fine except for one page. The flash steps through when...
4
by: Tmuldoon | last post by:
Hello, I have an .swf file on a shared directory of a local computer. Would someone be able to show me a javascript that would automatically open and start it playing automatically with other...
3
by: arunbalait | last post by:
I have created a project and made an exe. And also another exe for splash screen. The splash screen juz stays few seconds and the disappears. Now what I want is Am going to write my package into a...
0
by: =?Utf-8?B?c2hpbmlnYW1pYm9p?= | last post by:
when you insert a cd or usb in that autoplay menu comes up ... and one mine it has some options involving nero ... How do i remove some of the options on Vista ?
1
by: Anthony | last post by:
Is there a script out there that will prevent embedded Windows Media Player that autoplays a video from replaying when a person comes back to the home page during the same session? Maybe a cookie...
1
by: yogarajan | last post by:
Hi I am creating web site it is containing background mp3 file. Now I would like to know is it possible for the background music automatically play the next song once the previous song is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.