Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > adding command line options
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th June 17:47
External User
 
Posts: 1
Default adding command line options



Is there any way to add command line options to a delphi program, like
the 'c:' and '/q' added to the format command in dos?

The reason I ask is that I have a set of programs that I want to
connect to each other, so that I can get, for example, a spell
checker, speech synthesiser, text > english translator module, ect, to
be run automatically from the text editor, web browser, or email
viewer, so I need the user interface programs to be able to pass
information to the "function" programs about what data they should be
processing.

In addition to command line options, some of the programs may need to
use some form of interprogram variables, I'm using a combination of
the clipboard and txt files for this at the moment, is there a better
way?


Thanks in advance
  Reply With Quote


  sponsored links


2 25th June 17:47
ingolf
External User
 
Posts: 1
Default adding command line options



Use "Paramcount" to get the number of parameters passed. The parameters can
be read from 'Paramstr(X)'. Where X is the paramters index. Index 0, is
always your programs filename.
  Reply With Quote
3 25th June 17:47
jamie
External User
 
Posts: 1
Default adding command line options


use the paramstr(?)
it is 0 based index and is space separated.
if that bothers you you can always use the
CmdLine variable.
it contains the complete line..
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666