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/>