|actually i wanted the first line of all the files from the list to another separate file..|
and this is how i have done it..
dir /b/a-d c:\my_folder >> c:\rfile.txt
set /a count=1
for /f "skip=%count%" %%i in (c:\rfile.txt) do (
for /f "delims=$" %%j in (c:\my_folder\%%i) do (
echo filename,%%j >> c:\my_folder\temp_%%i
set /a count+=1
the "skip" doesn't take 0 as a parameter that's why i put a dummyline in the list file at the beginning.
this script works fine but i think there may be a more efficient way to do this. any ways, now atlest i can go ahead with my project :-).
thanks for all the help guys
all the best..