Skip to content

Commit

Permalink
ConfigLog.cpp: List all .exe files from B2XTranslator folder
Browse files Browse the repository at this point in the history
  • Loading branch information
datadiode committed May 17, 2021
1 parent 1f54be8 commit 9bc0fa8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Src/ConfigLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,12 @@ bool CConfigLog::DoFile(bool writing, String &sError)
WriteVersionOf1(1, _T("SQLiteCompare\\bin\\SQLiteCompare.exe"), false);
WriteVersionOf1(1, _T("ReoGridCompare\\bin\\ReoGridCompare.exe"), false);
WriteVersionOf1(1, _T("ToxyExtract\\bin\\ToxyExtract.exe"), false);
WriteVersionOf1(1, _T("B2XTranslator\\bin\\xls2x.exe"), false);

TCHAR path[MAX_PATH];
GetModuleFileName(0, path, _countof(path));
TCHAR path[MAX_PATH * 7]; // allows to safely move 6 levels down
GetModuleFileName(0, path, MAX_PATH);
LPTSTR pattern = PathFindFileName(path);
_tcscpy(pattern, _T("B2XTranslator\\bin\\*.exe"));
WriteVersionOf(1, path);
_tcscpy(pattern, _T("Merge7z\\*.dll"));
WriteVersionOf(1, path);

Expand Down

0 comments on commit 9bc0fa8

Please sign in to comment.