Hello Bill,
you can iterate across the array counting the entries, the last entry from a split command will be an empty string. regards -- Simon ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Simon Cope, : e-mail: [EMAIL PROTECTED] Chief Technical Officer - : WWW: http://www.ermapper.com Internet Technologies, : Int'l Phone: +61 8 9388 2900 Earth Resource Mapping Pty Ltd, : Int'l Fax: +61 8 9388 2901 Level 2, 87 Colin St, West Perth. : Australia Phone: (08) 9388 2900 Western Australia 6005 : Australia Fax: (08) 9388 2901 Q: 1.2TB (1,200GB) Image over the Internet? A: Image Web Server! http://www.earthetc.com > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Levett, Bill > Sent: Thursday, 1 August 2002 11:54 AM > To: 'ermapper_list' > Subject: Split command in batch scripts > > > Hi, > > Can anyone tell me if it is possible to define the last array variable then > using the split command. I wish to use the last variable but I don't know > many variables will result from the split. > > Bill Levett > Geoscience Australia > Scrivener Building, Dunlop Court > Fern Hill Park, Bruce ACT 2617 > Tel: 02 6201 4144 > Fax: 02 6201 4199 > > ----------------------------------------------------------- > > To make changes to your subscription, please visit our website, >http://www.ermapper.com/technicl/ermapperl/index.htm > > > ----------------------------------------------------------- To make changes to your subscription, please visit our website, http://www.ermapper.com/technicl/ermapperl/index.htm
