Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hp-pcd!hpmcaa!nacer From: nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) Newsgroups: comp.lang.pascal Subject: Paramstr() like argv() Summary: source to return cmd-line params as tokens as in C argv Keywords: command line parameters Message-ID: <1991Feb16.005252.24456@hpmcaa.mcm.hp.com> Date: 16 Feb 91 00:52:52 GMT Organization: HP Cardiology Business Unit - McMinnville, OR Lines: 21 I have been looking for some source that would implement a replacement for paramstr() such that it returns quoted items as a single token much like C argv[][] (I am not a fan of C this is just a reference :-) ) for example calling a program with: -s /N "Smith Brown" foo.2 should be parsed as: param# paramstr 1 -s 2 /N 3 "Smith Brown" 4 foo.2 Currently in TP single or double quoted strings containing white space are broken into individual tokens. Thank you for any pointers. Thank you. --Abdenacer (nacer@hpmcaa.mcm.hp.COM) -- Thank you. --Abdenacer (nacer@hpmcaa.mcm.hp.COM)