Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-1999, 02:44 PM
N/A
Guest
 
Posts: n/a
Default Command line parameters in my Delphi app

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.
Reply With Quote
  #2  
Old 04-05-1999, 11:34 PM
N/A
Guest
 
Posts: n/a
Default RE: Command line parameters in my Delphi app

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!
Reply With Quote
  #3  
Old 04-07-1999, 09:10 AM
N/A
Guest
 
Posts: n/a
Default RE: RE: Command line parameters in my Delphi app

If you would send a source code for this I would be very thankful.



My email address is lukaszb@hotmail.com



Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.