Board index » delphi » command line input
Jon's Mail
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Jon's Mail
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
command line inputIs there a way in a pascal program to accept command line input, in the same |
Jon's Mai
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line input-- never mind - i figured it out myself.... thanks anyhow!!! Jon QuoteJon's Mail wrote in message <357c316...@news.essex1.com>... |
Tucke
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputHow? I'd like to know also :) QuoteJon's Mail wrote: |
Ing. Franz Glase
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputTucker schrieb: Quote
And: Also look in your help file for GetEnv('PATH'); Visit: Franz Glaser |
Timo Sal
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputPlease do not (cross)post to the obsolete comp.lang.pascal. QuoteIn article <357c316...@news.essex1.com>, Jon's Mail <jwads...@yahoo.com> wrote: :command as the program name itself?? :eg. like a DOS 'dir /s' -- the '/s' part?? Besides the obvious ParamStr and ParamCount (please see your Turbo 143222 May 26 1998 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip -Subject: Capturing the entire command line 18. ***** A: ParamCount and ParamStr are for parsed parts of the command line All the best, Timo .................................................................... Spam foiling in effect. My email filter autoresponder will return a |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputIn article <6li63i$...@majakka.uwasa.fi>, QuoteTimo Salmi <t...@majakka.uwasa.fi> wrote: only before disk IO is done. TP is a HLL, not an assembler. Osmo |
Papai Andra
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputQuote> That is misinformation. There is no need to use paramount and paramstr parameters at a file open, and overwriting the other FCB at a second file open... This was a very bad idea of DOS 1.0! Andras |
Frank Peel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputQuoteTimo Salmi wrote in message <6li63i$...@majakka.uwasa.fi>... mentioned that the memory used (PrefixSeg:$80) was a default DTA in ancient times so maybe this was a problem in a *really* old version of TP, but R.E.Donais tried it on TP versions 1..7 and found no problem. So presumably TP either changed the default DTA address or saved the parameters during initialisation. It has been pointed out that programmers can corrupt command line parameters (ParamStr(1) and higher, anyway - ParamStr(0) is harder to corrupt) but R.E.Donais wrote in message <3580883b.81388...@news.southeast.net>... Quote
ParamStr use after disk I/O I would love to see it and I'm sure many others would too. FP |
Timo Sal
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputQuoteIn article <6ljjov$4a...@news.indigo.ie>, Frank Peelo <fpe...@indigo.ie> wrote: :>and cannot be used to get the command line exactly as it was. :[snip] :>A warning. If you want to get this correct (the same goes for TP's :>own ParamStr and ParamCount) apply them early in your program. At :>least they must be used before any disk I/O takes place! : :Surely not - try it! I thought we'd discussed this recently? I Easy, Dear Frank, easy. :-) :-) That's what's currently in the FAQ. All the best, Timo .................................................................... Spam foiling in effect. My email filter autoresponder will return a |
Franck Dora
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputHello, You can use 'paramstr'. Timomai Jon's Mail a crit: Quote> Is there a way in a pascal program to accept command line input, in the same |
Timoma
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:command line inputFranck Doray a crit: Quote> Hello, you should use paramcount to know how many parameters you have. and to get the first one you have to write : paramstr(1). And paramstr(0) gives you the name of your program which is running. Quote
|
1. Need help on Command line input.
3. DOS PROGRAM COMMAND LINE INPUT USING DELPHI
4. Help needed with Graphics Command input interface.
6. Turbo Vision - Input Line gadgets
7. line input
8. Different Sound-Peaks from a CD-Rom or the Sound-Card-Input (Line-In)
9. Different Sound-Peaks from the Sound-Card-Input (Line-In) or from a CD-Rom