🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1215

Re: DOS doesn't expands wildcard argument...!

#1215
From: Mike Rubenstein
Date: Sat, 20 Apr 1996 02:37
20 lines
1206 bytes
budlo@bud.com (Bud Lo) wrote:

> hello...
> 
> i've written a C program and compiled both a Unix and DOS version,
> the Unix version correctly expands its wildcard argument  like *.jpg 
> into its constituent files while the DOS version do nothing...
> Can anyone suggest solution to make it work in DOS...
> 
> (i know that the Unix's shell do the work of wildcard expansion
> before passing them to my program, and observing this behaviors 
> in DOS, does it imply that command.com simply leave this task to 
> programmer???)

Yes, but every C compiler I've seen for DOS includes a file that you
can just link in with your program to get the wildcard expansion.
Check your documentation.


Michael M Rubenstein
Technical Details
Message-ID: <3177f570.165236126@nntp.ix.netcom.com>
Path: arc1-ca.pugleaf.net!ix.netcom.com!news
References: <3177b1d9.14121359@news.hk.linkage.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!ix.netcom.com!news
From: miker3@ix.netcom.com (Mike Rubenstein)
Newsgroups: alt.msdos.programmer,comp.lang.c
Subject: Re: DOS doesn't expands wildcard argument...!
Date: Sat, 20 Apr 1996 02:37:27 GMT
Organization: Netcom
Message-ID: <3177f570.165236126@nntp.ix.netcom.com>
References: <3177b1d9.14121359@news.hk.linkage.net>
NNTP-Posting-Host: ix-dc12-18.ix.netcom.com
X-NETCOM-Date: Fri Apr 19  9:34:36 PM CDT 1996
X-Newsreader: Forte Agent .99d/32.182