![]() |
|
#1
|
|||
|
|||
|
I wrote an application in Delphi 4. *I want to be able to run it from command prompt with addition parameters. *For example I go to run and enter the following:
myapp.exe -notepad -explorer After pressing enter my application will be executed, but to addition to it Windows Explorer and Notepad should run with my application at the same time. Another Problem: I wrote a WHOIS client that checks for domain availability. *I enter domain name and click a speedbutton to send the request. *The program is working properly. *The task that I want to accomplish is to allow the user to hit ENTER button to send request, and not necessarilly click on the button. Thanks. |
|
#2
|
|||
|
|||
|
Create a PChar variable, then assign it to ParamStr(x) where x is the paramater, 0 would be the application, 1 would be 1st parameter etc. then you need to WinExec it (use the PChar var)
hope thats of help.... if you need code mail me! |
|
#3
|
|||
|
|||
|
If you would send a source code for this I would be very thankful.
My email address is lukaszb@hotmail.com Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|