🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Passing command line arguments from .bat file to application?

#2620
From: Graham Brand
Date: Thu, 11 Oct 1990 06:11
14 lines
778 bytes
I have been trying, without success, to pass a batch file command
line argument to a program that is invoked from inside the batch
file. The batch file has something like:
	.....
	programname "%1"
	.....
and is invoked as:
	batchfilename param

but programname never gets param. Would someone advise me how to do 
this correctly? 

Cheers,
-Graham
Technical Details
Message-ID: <39104@ucbvax.BERKELEY.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!janus.Berkeley.EDU!brand

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!janus.Berkeley.EDU!brand
From: brand@janus.Berkeley.EDU (Graham Brand)
Newsgroups: comp.os.msdos.programmer
Subject: Passing command line arguments from .bat file to application?
Message-ID: <39104@ucbvax.BERKELEY.EDU>
Date: 11 Oct 90 06:11:49 GMT
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: brand@janus.Berkeley.EDU
Lines: 14