Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autorun

Status
Not open for further replies.

jjhobs

Instructor
Sep 18, 2003
27
GB
I have created a project in VB and I would like it to run automatically from the CD whenever the CD is inserted. Can anybody tell me how I can do this. Thanks.
 
This has nothing to do with vb.
Create a file "autorun.inf" and write in it:

[autorun]
open=application_name.exe

* NOTE that you must file in the path. In the above line i assume that the exe is on the root of the CD. So if the exe is in a folder on the CD then: open=folder/application_name.exe

If you want the CD to have an icon:
icon=icon_name.ico


Again fill in the right path if the icon is not on the root
 
You need to be sure that the supporting VB files are installed on the PC though...

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top