|
-
Jul 8th, 2002, 05:31 AM
#1
Thread Starter
Lively Member
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 ???
-
Jul 8th, 2002, 05:37 AM
#2
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
-
Jul 8th, 2002, 05:52 AM
#3
Thread Starter
Lively Member
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 ????
-
Jul 8th, 2002, 06:07 AM
#4
Addicted Member
App.Path will return the location the program is running from...try and use that.
-
Jul 8th, 2002, 06:39 AM
#5
Thread Starter
Lively Member
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?
-
Jul 8th, 2002, 07:36 AM
#6
Banned
Use this:
VB Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|