Development‎ > ‎Windows関連‎ > ‎C#関連‎ > ‎

システム制御 - アプリケーションの実行ファイル名を取得する


概要

アプリケーションの実行ファイル名称を取得する方法を掲載致します。


対象


C#


方法


基本
string name = Application.ExecutablePath;
アプリケーション名称のみ取得
string work = Application.ExecutablePath;
string[] scope = work.Split( '\\' );
string name = scope[scope.Length-1];
SelectionFile type iconFile nameDescriptionSizeRevisionTimeUser