Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!m2c!wpi.WPI.EDU!kamal From: kamal@wpi.WPI.EDU (Kamal Z Zamli) Newsgroups: comp.lang.pascal Subject: Re: Getting the command line args Message-ID: <1990Nov8.224026.27977@wpi.WPI.EDU> Date: 8 Nov 90 22:40:26 GMT References: <950041@hpclapd.HP.COM> <1990Nov6.214246.8138@wpi.WPI.EDU> <1365@netmbx.UUCP> Organization: Worcester Polytechnic Institute Lines: 28 In article <1365@netmbx.UUCP> docbrain@netmbx.UUCP (Frank Seidinger) 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> > program 'This should be one long parameter' > >I never solved this problem in Turbo Pascal. > >Any comments? > I'm not sure what you mean... Anyway if you want to access more command line arguments, what you have to do is just call the paramstr.... i.e: paramstr(2) for argument no 2, paramstr(3) for argument no 3 etc. I hope this helps.