1 /*************************************************************************** 2 * Copyright (C) 2004-2021 by Pere Constans 3 * constans@molspaces.com 4 * cb2Bib version 2.0.1. Licensed under the GNU GPL version 3. 5 * See the LICENSE file that comes with this distribution. 6 ***************************************************************************/ 7 #include "WinConsole.h" 8 9 #include <QCoreApplication> 10 #include <QFileInfo> 11 12 int main(int argc, char* argv[]) 13 { 14 if (argc < 1) 15 return 1; 16 QFileInfo fi(argv[0]); 17 const QString exe(fi.absolutePath() + "/cb2bib.exe"); 18 QStringList arguments; 19 for (int i = 1; i < argc; ++i) 20 arguments.append(argv[i]); 21 QCoreApplication a(argc, argv); 22 WinConsole wc; 23 const int code(wc.execute(exe, arguments)); 24 return code; 25 }