M
magix
Dear Guru,
From Dos Command, I can execute like C:\Converter TextFile.txt or
C:\Converter D:\TextFile.txt
I wrote an application (using VC++) to call a dos command, where
sztxtBuffer1 is the select / browse text file, and Converter.exe is located
at the same directory/ folder with this application.
I tested that the following is not working well.
int ret = (int)ShellExecute(hWnd, "open", "Converter.exe", sztxtBuffer1 ,
NULL, 0);
How can the application look for Converter.exe at the current direcotry,
instead of specifying the absolute path of Converter like
int ret = (int)ShellExecute(hWnd, "open", "C:\Converter.exe",
sztxtBuffer1 , NULL, 0);
Because the application and converter can be installed at any directory.
Thanks.
From Dos Command, I can execute like C:\Converter TextFile.txt or
C:\Converter D:\TextFile.txt
I wrote an application (using VC++) to call a dos command, where
sztxtBuffer1 is the select / browse text file, and Converter.exe is located
at the same directory/ folder with this application.
I tested that the following is not working well.
int ret = (int)ShellExecute(hWnd, "open", "Converter.exe", sztxtBuffer1 ,
NULL, 0);
How can the application look for Converter.exe at the current direcotry,
instead of specifying the absolute path of Converter like
int ret = (int)ShellExecute(hWnd, "open", "C:\Converter.exe",
sztxtBuffer1 , NULL, 0);
Because the application and converter can be installed at any directory.
Thanks.