Application.ExeName

Application.ExeName获取当前执行程序的名字,如当前程序的名字为Yt.exe,若Yt.exe的绝对路径为F:\project\test\Yt.exe

ExtractFileDir(Application.ExeName)             F:\project\test  
ExtractFileDrive(Application.ExeName)          F:   //获取根目录Drive
ExtractFileExt(Application.ExeName)            .exe
ExtractFileName(Application.ExeName)           Yt.exe
ExtractFilePath (Application.ExeName)          F:\project\test\     //注意和Dir的区别,仅仅是差一个‘\’

你可能感兴趣的:(Application.ExeName)