Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クリックでexeファイルを開こうとしていますが、ファイルパスのサブフォルダーに配置されます。ファイルのインストールはユーザーごとに異なるため、c:\フォルダーに入れたくありません。ファイルを使用したいパス + そのファイル パス内の別のフォルダー + "file.exe"
何か案は?
このコードサンプルを使用できます
static void Main(string[] args) { Process.Start(<"your file path"); }
たとえば、notepath++ を実行したい場合は、
パスは =@"C:\Program Files (x86)\Notepad++\Notepad++.exe になります。