Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!unido!opal!tmpmbx!netmbx!docbrain From: docbrain@netmbx.UUCP (Frank Seidinger) Newsgroups: comp.lang.pascal Subject: Re: Getting the command line args Message-ID: <1365@netmbx.UUCP> Date: 7 Nov 90 16:34:53 GMT References: <950041@hpclapd.HP.COM> <1990Nov6.214246.8138@wpi.WPI.EDU> Organization: netmbx, Berlin, West Germany Lines: 29 kamal@wpi.WPI.EDU (Kamal Z Zamli) writes: >program test; >begin > if paramcount= 0 then > writeln (' No parameter is given to the program ') > else > writeln (' Parameter given to the program is = ',ParamStr(1)); >end. This works fine, if you try to scan 'true' parameters. That means, that each of the parameters in the given command line is seperated by whitespace. But what can I do if i have to catch an argument like: program 'This should be one long parameter' I never solved this problem in Turbo Pascal. Any comments? ---------------------------------------------------------------------- >>>>>>>>>>>>>>>>>> Wenn alles egal ist, Budweiser ! <<<<<<<<<<<<<<<<< ---------------------------------------------------------------------- * \/|\/ _ * * * \/\|/\/ / \ * e-mail docbrain@netmbx.in-berlin.de * * \|/ | @ | * docbrain%netmbx@db0tui6.bitnet * * | | A| * docbrain%netmbx@tub.uucp * ----------------------------------------------------------------------