Results 1 to 10 of 10

Thread: Creating a CD Menu program

  1. #1

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366

    Creating a CD Menu program

    I am creating an app that will start when my program CD is inserted. It will give the user a menu, with a selection of programs to install.

    I am using a label control for each link in the menu. Now what I need to do is execute a specific .exe file on the disk when a certain label is clicked...

    I have tried

    Private Sub Label1_Click(...) Handles Label1.Click
    Shell("myexe.exe")
    End Sub

    But it says the file cannot be found, even though the .exe is sitting in the same folder as my CD menu .exe

    What would be the correct way to call this .exe file?

  2. #2
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

  3. #3
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    To which you'd need to import System.Diagnostics, or qualify Process.Start with same.

  4. #4
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    Just so you know the autorun will be 100% useless unless the computer its running on has the .Net Framework
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  5. #5

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    Eh, I disagree,

    All one needs is an autorun.inf in their CD folder.

    That is a windows api thing, and nothing to do with the framework

  6. #6
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    No, ABX means that the autorun will try to trigger a program that won't run without the framework. Not even if you put it on the CD (i think)
    I don't live here any more.

  7. #7
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    Yes.... Thats what i meant....

    You would need to have another program (writen in c++ or a language that does not require runtimes, check for the framework and if it exists launch the vb.net Autorun menu, if not launch the .Net Framework setup)
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  8. #8

    Thread Starter
    Hyperactive Member greg_quinn's Avatar
    Join Date
    Nov 2002
    Location
    South Africa
    Posts
    366
    What about a small.exe made with Visual Studio.NET in VB.NET?

    Surely for the .exe to work you don't need the .NET framework installed?

  9. #9
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    a Simple

    VB Code:
    1. Msgbox ("Hello world")


    WILL NOT WORK AT ALL

    without the .Net Framework

    nothing will.
    Tips:
    • Google is your friend! Search before posting!
    • Name your thread appropriately... "I Need Help" doesn't cut it!
    • Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
    • Allways Include the Name and Line of the Exception (if one is occuring!)
    • If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)


    If you think I was helpful, rate my post
    IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous

  10. #10
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    If you develop in .Net, it will not run w/o the framework.

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