Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file input from file  (Read 4260 times)

0 Members and 1 Guest are viewing this topic.

sambac

  • Guest
batch file input from file
« on: February 16, 2005, 10:20:25 AM »
I have a file 'input.txt' in witch is written 'hello'.
I want to have a batch that write 'hello' on the screen.

This is my solution (doesn't work!!)

batch1.bat:

batch2 < input.txt


batch2.bat:

echo %1
« Last Edit: February 16, 2005, 10:20:52 AM by sambac »

SYOB SYOT

Re: batch file input from file
« Reply #1 on: June 22, 2012, 08:01:09 PM »
HAY,
TO FIND SPECIFIC WORD IN SPECIFIC FILE WITH BATCH AND TYPE IT WRITE THIS:
BATCH1.BAT:

FIND /I "HELLO" INPUT.TXT

THIS IS ALL. YOU DO NEED TWO BATCHES.

OR TO SIMPLY WRITE HELLO USE "ECHO: HELLO" IN BATCH.
YBY

Salmon Trout

  • Guest
Re: batch file input from file
« Reply #2 on: June 22, 2012, 11:14:48 PM »
1. Why are you reviving very old threads?
2. Why are you using all capital letters, which is the equivalent of shouting, and is very irritating?