diff --git a/GetADoc/RunBatch.cs b/GetADoc/RunBatch.cs index 4d63ccf186562937297a2f9922752724e76e9433..0c0c2b458e6b49cdcbfeb20589ba33c8d39ef298 100644 --- a/GetADoc/RunBatch.cs +++ b/GetADoc/RunBatch.cs @@ -57,8 +57,9 @@ namespace GetADoc //コンソール呼び出し ProcessStartInfo processStartInfo = new ProcessStartInfo(); - string stCurrentDir = System.IO.Directory.GetCurrentDirectory(); - processStartInfo.FileName = System.IO.Path.Combine(stCurrentDir, "getADoc.Data", "getADoc.bat"); + string appPath = System.Reflection.Assembly.GetExecutingAssembly().Location; //モジュールのパスを取得 + string appDirectory = appPath.Substring(0, appPath.LastIndexOf(@"\") + 1); //モジュールの存在するディレクトリを取得 + processStartInfo.FileName = System.IO.Path.Combine(appDirectory, "getADoc.Data", "getADoc.bat"); processStartInfo.CreateNoWindow = true; // コマンドプロンプトを非表示 processStartInfo.UseShellExecute = false; // シェル機能オフ diff --git a/Release/GetADocGUI.exe b/Release/GetADocGUI.exe index d22b75027532d36a2ee8665427ecb1b922d98daa..6bd57d661aef3e7b0423127d7009cb9a6b154f95 100644 Binary files a/Release/GetADocGUI.exe and b/Release/GetADocGUI.exe differ diff --git a/Release/GetADocGUI.pdb b/Release/GetADocGUI.pdb index e7f52edf7b0a183541da53dbd3bc34ef38e3c600..5ec766d8a3346525591abb71a0f7758ed854a962 100644 Binary files a/Release/GetADocGUI.pdb and b/Release/GetADocGUI.pdb differ