Home
Manage Your Code
Snippet: Path to EXE (C#)
Title: Path to EXE Language: C#
Description: Get the path to the executable file in a windows service Views: 195
Author: Paul Ward Date Added: 7/18/2008
Copy Code  
1using System.Reflection;
2
3string rootFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);