Process.Start ("C:/MyDirectory/My.exe")
, but if my friend get it and put in another location (project exe + My.exe) the file maked in VB will not work. I need for this file to get directory there is it and run .exe I declared. Thanks.
Make a project in VB to run other .exe
Page 1 of 13 Replies - 879 Views - Last Post: 18 March 2013 - 06:42 AM
#1
Make a project in VB to run other .exe
Posted 18 March 2013 - 04:40 AM
Hello. I have a question. What code I need to pus in VB project to run a .exe. This .exe will be in directory near .exe maked in VB. I tried
Replies To: Make a project in VB to run other .exe
#2
Re: Make a project in VB to run other .exe
Posted 18 March 2013 - 04:59 AM
It depends where the .exe will be located:
SpecialDirectories such as MyDocuments
the current working directory
Application.StartupPath
..there are others.
SpecialDirectories such as MyDocuments
the current working directory
Application.StartupPath
..there are others.
This post has been edited by andrewsw: 18 March 2013 - 04:59 AM
#3
Re: Make a project in VB to run other .exe
Posted 18 March 2013 - 05:36 AM
I need to write
Thanks
Public Shared Function GetCurrentDirectory As String Process.Start("GetCurrentDirectory/My.exe")
?Thanks
#4
Re: Make a project in VB to run other .exe
Posted 18 March 2013 - 06:42 AM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|