![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
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 |
|
#1
|
||||||||
|
||||||||
|
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 |
| Display Modes | |
|
|
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 |