Computing.Net > Forums > Disk Operating System > Extract data form txt file in bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Extract data form txt file in bat

Reply to Message Icon

Name: CBRAMASCO
Date: September 4, 2007 at 20:18:42 Pacific
OS: XP
CPU/Ram: PENTIUM 4
Product: IBM
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: September 4, 2007 at 22:03:06 Pacific
Reply:

@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



0

Response Number 2
Name: Muthukumar R C
Date: October 4, 2007 at 10:01:19 Pacific
Reply:

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



0

Response Number 3
Name: jerima
Date: January 15, 2008 at 12:01:38 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Extract data form txt file in bat

Reading Txt file in dos mode www.computing.net/answers/dos/reading-txt-file-in-dos-mode/13836.html

dos6.22 print to txt file www.computing.net/answers/dos/dos622-print-to-txt-file-/16655.html

How can I remove files in DOS ? www.computing.net/answers/dos/how-can-i-remove-files-in-dos-/10052.html