reading file path from file

August 12, 2011 at 08:23:22
Specs: Windows XP
hi

i want to create a command file which read a text file,this text file contains path of all sourcefiles and destination files.Now this cmd file execute some command which takes source file path from text file ,and generate output to destination file using destination file path from text file.

Any idea?


See More: reading file path from file

Report •


#1
August 12, 2011 at 20:33:02
i want to create a command file which read a text file, this text file contains path of all sourcefiles and destination files. So treat us as being dumb, show us what the text file looks like so that we know when and how the text file should be accessed.


Please come back & tell us if your problem is resolved.


Report •

#2
August 13, 2011 at 05:13:14
hi
suppose there are textfile testA.txt

now, it contains path like" C:\Documents and settings\first1.txt","C:\Documents and settings.first2.txt" and more.........................

now there are other file testb,txt which contains paths of the destination file

like "D:\My documents\tyr1.txt","D:\My documents\try2.txt"...............

now i want a .bat file which read path from file A(C:\Documents and settings\first1.txt) , do some calculation of the file and put the output in the file from the testb which is "D:\My documents\tyr1.txt"

there are so many path in both file ,how to read each line from test A and put output in testb
i hopw this will help to understand my question


Report •

#3
August 13, 2011 at 15:55:50
Aha, so you have two text files. From what you show the paths in both files are comma delimited is this so or is the comma shown just to separate the paths in your post? If the paths are comma delimited how many paths are in each line of the files?


Please come back & tell us if your problem is resolved.


Report •

Related Solutions

#4
August 13, 2011 at 16:35:18
its not fix,every month file is added so no. of paths are not fix,yes we hv comma seperation in file

Report •


Ask Question