Click to See Complete Forum and Search --> : Auto run from CD
sultan_tipu
October 1st, 2005, 02:24 AM
I am wanting to burn a CD with some Battlefield 1942 mods on it for a couple friends and I want an executable that I can autorun that will bring up a little window that allows you to click the different buttons to install the mods using the .exe mod files . I can make the interface but I don't know how to run an outside .exe file using VB.NET. Any help would be appreciated. if that autorun page have a little instalation no problem. what will be path of CD Rom.
PramodsNair
October 1st, 2005, 05:24 AM
Dear sultan_tipu,
You can use Process.Start() method for launching an external app from Vb .NET
use the following example :
Dim p As Process = New Process
p.Start("Notepad.exe") ' Replace Notepad.exe with your .exe name
Hope that this solves your problem
Pramod S Nair
RobDog888
October 1st, 2005, 12:57 PM
Create a file called autorun.inf and place this in it but make the relevent changes to your file(s). Then when you burn your CD place the autorun.inf in the root directory.
[AutoRun]
OPEN=MyFile.exe
ICON=GangstaYoda.ico
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.