Create files based on the values of one file

Closed
raghav525 Posts 3 Registration date Wednesday March 11, 2009 Status Member Last seen March 17, 2009 - Mar 12, 2009 at 03:49 PM
raghav525 Posts 3 Registration date Wednesday March 11, 2009 Status Member Last seen March 17, 2009 - Mar 13, 2009 at 10:16 AM
Hello,
i would like to write a DOS Batch script to create a multiple files based on the values from a single file mainfile.txt (For instance, mainfile.txt has 5 values as
A200001
A200002
B200101
C200101
C200201
I need a dos batch script to create five files with below names and it values are also same
File name - Its value
A200001.txt - A200001
A200002.txt - A200002
B200101.txt - B200101
C200101.txt - C200101
C200201.txt - C200201

mainfile.txt may have any values and may have any no. values. Could some one please assist me on this?

Thanks for your help

2 responses

andytozor Posts 17 Registration date Saturday September 6, 2008 Status Member Last seen June 10, 2009 1
Mar 13, 2009 at 05:03 AM
hi,
try this link to get help:
http://www.allenware.com/icsw/icswidx.htm
you will surely get what information on what you are trying to do.
0
raghav525 Posts 3 Registration date Wednesday March 11, 2009 Status Member Last seen March 17, 2009
Mar 13, 2009 at 10:16 AM
I will try this! Thanks!
0