GetModuleFileName() public static méthode

Return the full path with file name for the current executable file
public static GetModuleFileName ( ) : String
Résultat String
Exemple #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;
     }
 }
Exemple #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");
 }