× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



How do I get the contents of filea to be a parm to MyBatFile.bat?

On Wed, Mar 4, 2009 at 1:12 PM, Bob Crothers <bob.crothers@xxxxxxxxx> wrote:

Make it a .bat file. Dont know if the old dos versions did much with a
.cmd
file.
try:
start /B /WAIT MyBatFile.Bat "parm1" "parm2" 'etc"

Bob


------------------------------------------
To love is to risk not being loved in return.
To hope is to risk pain.
To try is to risk failure,
but risk must be taken because the greatest hazard in life is to risk
nothing.
--Catra Corbett



On Wed, Mar 4, 2009 at 12:34 PM, Michael Ryan <michaelrtr@xxxxxxxxx>
wrote:

Old version of DOS, kinda stripped down, but it seems to have most stuff.
What I want to do is this in a command file:

type filea.txt | commandfileb.cmd

And then commandfileb.cmd needs to do something with the content of
filea.txt.

Anyone know how to do this in a DOS command file? commandfileb.cmd
doesn't
seem to get the passed parameter...I've tried a bunch of methods, and
nothing seems to work.

Thanks!
--
This is the PC Technical Discussion for iSeries Users (PcTech) mailing
list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.

--
This is the PC Technical Discussion for iSeries Users (PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.