TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: RONALD SCHLEGEL
date: 1996-08-31 16:42:00
subject: Multiple COMMAND$ params.

Hello,
 
Does anyone know how to pass more than 1 variable to COMMAND$? I am 
trying to trap DOS environment variables...here is my example:
 
TEST.BAT
--------
 
UPLOAD %1 %2
 
TEST.BAS
--------
CLS
 
Parm1$ = COMMAND$
 
PRINT "WORKING..."
OPEN "TEST.DAT" FOR APPEND AS #1
 
PRINT #1, COMMAND$
 
CLOSE #1
 
END
 
The program reads the %1 fine, but never sees the %2. The program that 
will pass the %1 & %2, passes the filename as %1 and the file-extention 
as %2. I've got other programs that I need to pass multiple parameters 
to (ie. "TEST 1 3 OUTPUT.TXT"), but can on figure how to pass 1 of the 
parameters...the first one.
 
Thanks...
-Ron
 
 * RM 1.3 03129 * Yum, said Pooh, as he licked the hunny off of Bo Derek.
--- TriToss (tm) Professional 10.0 - #229
---------------
* Origin: * Dynasty BBS * The home of Dungeon Software * (1:110/1065.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.