🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5202

HowdoI: Commandline Args within BASIC ?

#5202
From: Ron Craig
Date: Thu, 14 Mar 1991 16:08
24 lines
1857 bytes
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.
Technical Details
Message-ID: <2967@beguine.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!mcnc!beguine!cahaba!craig

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!emory!gatech!mcnc!beguine!cahaba!craig
From: craig@cahaba.med.unc.edu (Ron Craig)
Newsgroups: comp.os.msdos.programmer
Subject: HowdoI: Commandline Args within BASIC ?
Summary: need help for IBM BASIC 2.00 (compiled)
Keywords: commandline, BASIC
Message-ID: <2967@beguine.UUCP>
Date: 14 Mar 91 16:08:52 GMT
Sender: usenet@beguine.UUCP
Reply-To: craig@uncmed.med.unc.edu (Ron Craig)
Followup-To: craig@uncmed.med.unc.edu
Organization: UNC-CH
Lines: 24