I am calling an .exe file from my .Net Application which is located in the Program Files Folder.
Dim strBatchFile As String = String.Empty
strBatchFile = "C:\Program Files (x86)\VanDyke Software\Clients\sfxcl.exe"
sfxcl.exe is located in the
C:\Program Files (x86)\VanDyke Software\Clients
I assume some of us have installed 64 bit version and I guess file might have located in this folder path.
C:\Program Files\VanDyke Software
How to get the file path dynamically, by passing file name in .Net ?
Cheat code would be, if sfxcl.exe is not located in the C:\Program Files (x86)\ , then look at C:\Program Files\