Articles

Extract data form txt file in bat

IBM
September 4, 2007 at 20:18:42
Specs: XP, PENTIUM 4

Hi, I'm a machinist and I make cnc codes for machines, so far I have about 1000 diferent programs and on each program there is a machining cycle time prompt like this.
MACHINING CYCLE TIME = 33.44min
all programs are simple .txt files.
How can I extract that data form them and send it to another txt doing a loop batch file

CARLO B.


See More: Extract data form txt file in bat

Report •


#1
September 4, 2007 at 22:03:06

@echo off > new.txt
for %%T in (*.txt) do find "MACHINING CYCLE TIME" < %%T >> new.txt


=====================================
If at first you don't succeed, you're about average.

M2



Report •

#2
October 4, 2007 at 10:01:19

Hi,
how to get the second line or a particular in a text file using batch file.
Note : same content may in some other lines. so need to take a particular line and particular part i mean.. have to a content from 5th character to end of the line in a particular line.

pls help.
thanks in advance



Report •

#3
January 15, 2008 at 12:01:38

For data extraction, try using the product intelliget available at http://www.mountonetech.com/product... Its simple yet very useful software.


Report •

Related Solutions


Ask Question