delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/15/19:22:39

From: "NG Chi Fai, John" <cfng1 AT netvigator DOT com>
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019