Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!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: <1990Nov6.214246.8138@wpi.WPI.EDU> Date: 6 Nov 90 21:42:46 GMT References: <950041@hpclapd.HP.COM> Organization: Worcester Polytechnic Institute Lines: 24 In article <950041@hpclapd.HP.COM> defaria@hpclapd.HP.COM (Andy DeFaria) writes: >This is probably obvious to you all but I scanned through the documentation >(pretty quickly) and I didn't come up with anything so I asking: > >How does a running program access the command line arguments? I would like >to do this with Turbo Pascal. Try ParamStr and ParamCount functions: Example: ___________________________________ 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. _________________________________ I hope that's help....