From: "NG Chi Fai, John" Newsgroups: comp.os.msdos.djgpp Subject: Command line parameters Date: Thu, 16 Sep 1999 01:59:08 +0800 Organization: IMS Netvigator Lines: 25 Message-ID: <37DFDE6C.CF7B3B8B@netvigator.com> NNTP-Posting-Host: hhtun030003.netvigator.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: zh-TW To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello all, I have a program that take command line parameters. int main(int argc, char * argv) { } When I put ".\somedir\*.*" as the parameter, argc is not 2, but can be anything, say, 3 if I have 3 files in the "somedir", and the parameters will be: .\somedir\file1.sth .\somedir\file2.sth .\somedir\file3.sth I think it is a little bit weird. I'm using DJGPP with EGCS. Please advise how anything I can do such that I only receive 1 paramenter ".\somedir\*.*" Thanks in advance. NG Chi Fai