Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string GetPathRelativeToExecutable(string fileName)
- {
- string executable = new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath;
- return System.IO.Path.GetFullPath(System.IO.Path.Combine(System.IO.Path.GetDirectoryName(executable), fileName));
- }
Add Comment
Please, Sign In to add comment