Run executable with arguments
-
How can I run this command: pdfcompress.exe "c:\currentfile.pdf" "c:\newfile.pdf" I dont see how I can use ShellExecute to send these 2 arguments. Is there some other command I can use along with these arguments to execute this file? Please let me know.
-
How can I run this command: pdfcompress.exe "c:\currentfile.pdf" "c:\newfile.pdf" I dont see how I can use ShellExecute to send these 2 arguments. Is there some other command I can use along with these arguments to execute this file? Please let me know.
-
How can I run this command: pdfcompress.exe "c:\currentfile.pdf" "c:\newfile.pdf" I dont see how I can use ShellExecute to send these 2 arguments. Is there some other command I can use along with these arguments to execute this file? Please let me know.
Erich Ruth wrote:
pdfcompress.exe "c:\currentfile.pdf" "c:\newfile.pdf" I dont see how I can use ShellExecute to send these 2 arguments.
Have a look at the [ShellExecuteA function (shellapi.h) - Win32 apps | Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutea) : its fourth parameter (LPCSTR lpParameters) is what you are looking for.