I am using Delphi 6 (yes, I know, but I am old school).
I have a problem with TShellExecuteInfo. I want to run this command: C:\delphi\bin\Convert.exe -b-i plus a paramstring (folder and name of file).
If I put the -b-i after the Executeinfo.lpfile then ShellExecuteEx() can't find Convert.exe, and if I put it in Paramstring then Convert.exe can't find the file.
I have spend 3 days on this, so I hope you can help.
BTW, why would Delphi suddenly start to save my file as text?
You should not be using
ShellExecuteEx()for this at all. That function is meant for executing document files, not running applications. You should be usingCreateProcess()instead. Simply past the whole command to itslpCommandLineparameter, eg: