Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shellExecute 1

Status
Not open for further replies.

nicsin

Programmer
Jul 31, 2003
743
0
0
GB
Hi,

I am calling ana application from within my delphi one using the shellexecute procedure. The thing is tha I want to pass a parametre to the other app but

ShellExecute(Handle, 'open','c:\app.exe prm', nil, nil, SW_SHOWNORMAL);

is not working. Any ideas?
 
oops:

ShellExecute(Handle, 'open','c:\app.exe', 'prm', nil, SW_SHOWNORMAL);

sorry about that
 
try this :

Code:
ShellExecute(Handle,nil,PChar(App),PChar(Runparams),PChar(Appdir),Winstate);
in your case
App := 'c:\app.exe'
Runparams := 'prm';
AppDir := 'c:\'

cheers

--------------------------------------
What You See Is What You Get
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top