[comp.os.msdos.programmer] HowdoI: Commandline Args within BASIC ?

craig@cahaba.med.unc.edu (Ron Craig) (03/15/91)

This is a 1st-time posting to this group.  I checked for a FAQ, but found none.
Please respond directly.  If I get good answers, I'll post them all at once.

I need to know how to access commandline arguments from within my compiled
BASIC program.  (It's the only language available here, folks. flames > nul)

I am using:	CompuAdd 386 at 25 Mhz
		MS-DOS 4.01
		IBM Personal Computer BASIC Compiler version 2.00
		Microsoft 8086 linker version 3.05.

Not strictly related to the question, but if you need background...

I am writing a couple of utilities to document the commands on our LAN and
PCs.  I'm making a "whatis" command like *nix, and a "man" command which
checks an environment variable MANDIR to find documentation files that have
been LHarc'd (starting with network docs, then personal docs on the PC).

I'd also be interested in getting suggestions on how to call LHarc from 
within my BASIC program: feeding LHarc the next directory to check, and
detecting if the desired doc file was found within the archive.
 Ron Craig                    inet-   craig@med.unc.edu 
 CB# 8180 - UNC Chapel Hill   bitnet- URONCR@UNC.BITNET  AT&T- (919) 966-3681
 Chapel Hill NC 27599-8180  My opinions are valued by UNC, not shared by them.