GetModuleFileName() public static method

Return the full path with file name for the current executable file
public static GetModuleFileName ( ) : String
return String
Esempio n. 1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public LogWriter(string logFilename = null)
 {
     if (logFilename == null)
     {
         m_fileName = FolderHelper.GetModuleFileName();
         m_fileName = m_fileName.Replace(".EXE", ".log");
         m_fileName = m_fileName.Replace(".exe", ".log");
     }
     else
     {
         m_fileName = logFilename;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public LogWriter()
 {
     m_fileName = FolderHelper.GetModuleFileName();
     m_fileName = m_fileName.Replace(".EXE", ".log");
     m_fileName = m_fileName.Replace(".exe", ".log");
 }