Results 1 to 6 of 6

Thread: launch a program ...

  1. #1

    Thread Starter
    Lively Member Alessio's Avatar
    Join Date
    Feb 2002
    Location
    http://www.nottehorror.too.it
    Posts
    101

    Smile launch a program ...

    I want to make a program vb as cd autorun. how do I let launch a program that is on the CD, in the same directory of my prog VB, without specifying the unity of destination therefore don't I know unites him CD it is in D or in E or in F ???

  2. #2
    khalik
    Guest
    MAke a file called

    Autorun.inf (in notepad)

    then insert this text

    [autorun]
    open=setup.exe << program to autorun
    icon= setup.exe << icon to display on the CD icon


    save it and put it in the root directory of the CD

  3. #3

    Thread Starter
    Lively Member Alessio's Avatar
    Join Date
    Feb 2002
    Location
    http://www.nottehorror.too.it
    Posts
    101

    but ...

    thanks but it is not what I want.
    As I serve as my program vb affixed of to write (directory CD) D:\directory\file.exe to write "same unity of where the same program vb":\directory\file.exe ????

  4. #4
    Addicted Member Martin Wilson's Avatar
    Join Date
    Mar 2002
    Location
    :)
    Posts
    236
    App.Path will return the location the program is running from...try and use that.

  5. #5

    Thread Starter
    Lively Member Alessio's Avatar
    Join Date
    Feb 2002
    Location
    http://www.nottehorror.too.it
    Posts
    101
    ok, but as I let to unite the App.Path to the run that I want. example,
    App.Path = c:\document
    I want to launch the program in c:\document\prova\prova.exe
    how do I let to add the directory it tries?

  6. #6
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    Use this:
    VB Code:
    1. App.Path & "\prova\prova.exe"

    App.Path returns as string. You can just attach another string to it to make a complete path.

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