[RESOLVED] [2005] Application path
Hey
I'm making a program an ran into a bit of a problem with the local drive letters.
My HDD is call Drive C, a few people I know have differant letters.
Code:
System.Diagnostics.Process.Start("C:\Program Files\Trend Micro\HijackThis\HijackThis.exe")
I'm trying to change C so that it runs on any drive letter.
How would I go about doing this?
Thanks in advanced
Sheepy
Re: [2005] Application path
This is how I would do it.
Code:
Dim HijackThisExe As String = My.Computer.FileSystem.SpecialDirectories.ProgramFiles & "\Trend Micro\HijackThis\HijackThis.exe"
If IO.File.Exists(HijackThisExe) Then
Process.Start(HijackThisExe)
End If
Re: [2005] Application path