CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    41

    Angry Auto run from CD

    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.

  2. #2
    Join Date
    Apr 2005
    Location
    India
    Posts
    271

    Smile Re: Auto run from CD

    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

  3. #3
    Join Date
    Nov 2004
    Location
    LA. California Raiders #1 AKA: Gangsta Yoda™
    Posts
    616

    Re: Auto run from CD

    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.
    Code:
    [AutoRun]
    OPEN=MyFile.exe
    ICON=GangstaYoda.ico
    VB/Office Guru™ (AKA: Gangsta Yoda™)
    VB Forums - Super Moderator 2001-Present

    Microsoft MVP 2006-2011

    Please use [code]your code goes in here[/code] tags when posting code.

    Senior Software Engineer MCP, BSEE, CET
    VS 2012 Premium, VS 6.0 Enterprise SP6, VSTO, Office Ultimate 2010, Windows 7 Ultimate
    Star Wars Gangsta Rap SE Reputations & Rating Posts Office Primary Interop AssembliesAdvanced VB/Office Guru™ Word SpellChecker™.NETAdvanced VB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address ListVB6/Crystal Report Ex.VB6/CR Print Setup Dialog Ex.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured