Petri IT Knowledgebase Forums
 

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri IT Knowledgebase Forums > Windows Scripting > DOS Command Shell
Petri.co.il is happy to award auglan the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri IT Knowledgebase Forums Search Todays Posts Today's Posts Mark Forums Read

Notices

Dos Batch file to read txt file and extract character values.

Dos Batch file to read txt file and extract character values.

this thread has 5 replies and has been viewed 19674 times

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 31st December 2009, 20:52
jimmyjiang jimmyjiang is offline
Junior Member
It's not a coincidence
 
 Join Date: Apr 2005
  6 month star 12 month star
 Posts: 145
 Reputation: jimmyjiang is an unknown quantity at this point (9)
Default Dos Batch file to read txt file and extract character values.

hi all,
I have an text file show as below(output from diruse) , need to extract user's first initial and last name and append "@xxx.com" to create an email address, anyone has idea?

! 842.89 1349 SUB-TOTAL: D:\xxx\USERS\jimmy Sortais
! 4075.86 5607 SUB-TOTAL: D:\xxx\USERS\Alexia jiang
.....


I know" for loop" will be good choice, but stock at detail syntax.

for /f "tokens=6" %%G in (D:\xxx\Users\personalFolder.txt) do (
echo %%G > get_users.txt
)
thanks in advance!
jimmy
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
using batch script to delete specific lines to end of file in a text file v.prasad86 General Scripting 3 29th December 2009 00:06
Batch Scripting - how to read a string value from a text file albert_newton General Scripting 2 6th August 2009 19:44
I need to replace content in a .txt file with a batch...Think I'm almost there! mrt2005 General Scripting 6 15th May 2009 22:31
DOS Batch file for searching a specific file pmg DOS Command Shell 4 28th February 2009 01:33
Dos batch file for export of syslog data jdeguerre General Scripting 2 24th March 2008 17:30


All times are GMT +3. The time now is 19:46.

Steel Blue 3.5.4 vBulletin Style ©2006 vBEnhanced
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri