This line:
is used for vb to start another application.
Apparently, this starts up the application with its current directory being your applications directory.
ex:
your program is starting in "C:\MyVBNetDirectory\"
It looks like this will result in the files working directory being "C:\MyVBNetDirectory"
If the application youre running uses absolute paths, then all works pretty well. Also having the dlls registered with the system makes it happy.
Apparently I found a piece of professional (Novell) software which this isnt the case.
I try to run a Novel Backup from another directory and I get an error that it cant find the Dlls, which are located in this applications directory.
It works when I move my VB.Net application over to the Novell Directory, but when its in its own directory, I get the error.
Id much rather have one directory with ALL of my .net applications in it, rather than having them all spread to the winds in random directories.
Is there another way to start an application or to insure the application starts in its own directory?
Code:
System.Diagnostics.Process.Start(Path)
is used for vb to start another application.
Apparently, this starts up the application with its current directory being your applications directory.
ex:
your program is starting in "C:\MyVBNetDirectory\"
Code:
System.Diagnostics.Process.Start(C:\ApplicationDirectory\Application.exe")
It looks like this will result in the files working directory being "C:\MyVBNetDirectory"
If the application youre running uses absolute paths, then all works pretty well. Also having the dlls registered with the system makes it happy.
Apparently I found a piece of professional (Novell) software which this isnt the case.
I try to run a Novel Backup from another directory and I get an error that it cant find the Dlls, which are located in this applications directory.
It works when I move my VB.Net application over to the Novell Directory, but when its in its own directory, I get the error.
Id much rather have one directory with ALL of my .net applications in it, rather than having them all spread to the winds in random directories.
Is there another way to start an application or to insure the application starts in its own directory?