GetModuleFileName() 공개 정적인 메소드

Return the full path with file name for the current executable file
public static GetModuleFileName ( ) : String
리턴 String
예제 #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;
     }
 }
예제 #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");
 }