By default base path of windows services will be set to %WINDIR%\System32. Many people need to set base path same as binary path. You can use this statement to set path
System.IO.Directory.SetCurrentDirectory(System.AppDomain.CurrentDomain.BaseDirectory);
Comments
Post a Comment