a more usable ShellExecute

Submitted on: 1/1/2015 3:47:00 PM
By: Erik Ellis (from psc cd)  
Level: Beginner
User Rating: By 7 Users
Compatibility: Delphi 7, Delphi 6, Delphi 5
Views: 4417
     I´we sen alot of ShellExecute tutorials but thay arent that good, there is stuff thats missing.

				This is my first tutorial so dont get upset if its no good, just post a coment and ill fix it.


1 (ShellExecute) Thats a ShellAPI command and therefore you need to add ShellAPI to Uses

2 (The first "PChar" command) Betven the brakets you add Dir+FileName like so : c:\dir\file.exe

3 (The second "PChar" command) Add parameters to it like hl.exe´s : -console -game ns

Now thats more stable and is compateble with stuff like : edit1.text + '\hl.exe'

Im uploading my updated verson of Jason´s apis.pas with stuff like RunApp, OpenBrowser and FileName.exe to FileName Converter

Other 1 submission(s) by this author


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.