thanks aGerman. there are some changes in my problems now.I'll explain it.
inside that root drive there is a folder named 00002075 (that name is not constant also) with these contents:
as you can see it has tif files and idx, that idx is a text file with these contents:
Code: Select all
"30052011","P1700","0000006222","83096713","00000001.tif","1464005305"
"30052011","P1700","0000417617","82339836","00000002.tif","1464005304"
"30052011","P1700","0009130113","11001188452","00000003.tif","1464005303"
"30052011","P1700","0000068037","82339833","00000004.tif","1464005302"
"30052011","P1700","0000015051"," ","00000005.tif","1464005301"
"30052011","P1700","0004192006","84199213","00000006.tif","1464005300"
"30052011","P1700","0009130180","11000516088","00000007.tif","1464005299"
"30052011","P1700","0002252728","77356528","00000008.tif","1464005298"
"30052011","P1700","0009009411","71736775","00000009.tif","1464005297"
"30052011","P1700","0000076552","11000386658","00000010.tif","1464005296"
"30052011","P1700","0009121513","84239232","00000011.tif","1464005295"
"30052011","P1700","0000581497","78361295","00000012.tif","1464005294"
"30052011","P1700"," ","83815334","00000013.tif"," "
"30052011","P1700","0009121613","84239284","00000014.tif","1464005292"
"30052011","P1700","0000016709","82582322","00000015.tif","1464005291"
"30052011","P1700","0000003574","00000810","00000016.tif","1464005289"
"30052011","P1700","0000109836","00001408","00000017.tif","1464005288"
"30052011","P1700","0009306620","00000374","00000018.tif","1464005286"
"30052011","P1700","0009306620","00000373","00000019.tif","1464005285"
"30052011","P1700","0001061128"," ","00000020.tif","1464005283"
"30052011","P1700","0001061128","11001162938","00000021.tif","1464005283"
"30052011","P1700","0009756970","00000090","00000022.tif","1464005282"
"30052011","P1700","0009223020","00057705","00000023.tif","1464005281"
"30052011","P1700","0009074213","11000465301","00000024.tif","1464005280"
"30052011","P1700","0001087092","00000888","00000025.tif","1464005279"
"30052011","P1700","0009282816","00003133","00000026.tif","1464005278"
"30052011","P1700","0001087830","11000601985","00000027.tif","1464005277"
"30052011","P1700","0001005408","11000601982","00000028.tif","1464005276"
"30052011","P1700","0009007541","11000601983","00000029.tif","1464005275"
"30052011","P1700","0010112728","11000601984","00000030.tif","1464005274"
"30052011","P1700","0000009557","84055907","00000031.tif","1464005273"
"30052011","P1700","0001101478","84254183","00000032.tif","1464005272"
"30052011","P1700","0000095778","83931022","00000033.tif","1464005271"
up to...
"30052011","P1700","0001070314","83615870","00000500.tif","1639016940"
I want to move the first 100 tif files to a folder and extract the 100 lines in idx (associated lines) and write it to a new idx file.
This should be the output.
Code: Select all
"30052011","P1700","0000006222","83096713","00000001.tif","1464005305"
"30052011","P1700","0000417617","82339836","00000002.tif","1464005304"
"30052011","P1700","0009130113","11001188452","00000003.tif","1464005303"
"30052011","P1700","0000068037","82339833","00000004.tif","1464005302"
"30052011","P1700","0000015051"," ","00000005.tif","1464005301"
"30052011","P1700","0004192006","84199213","00000006.tif","1464005300"
"30052011","P1700","0009130180","11000516088","00000007.tif","1464005299"
"30052011","P1700","0002252728","77356528","00000008.tif","1464005298"
"30052011","P1700","0009009411","71736775","00000009.tif","1464005297"
"30052011","P1700","0000076552","11000386658","00000010.tif","1464005296"
"30052011","P1700","0009121513","84239232","00000011.tif","1464005295"
"30052011","P1700","0000581497","78361295","00000012.tif","1464005294"
"30052011","P1700"," ","83815334","00000013.tif"," "
"30052011","P1700","0009121613","84239284","00000014.tif","1464005292"
"30052011","P1700","0000016709","82582322","00000015.tif","1464005291"
"30052011","P1700","0000003574","00000810","00000016.tif","1464005289"
"30052011","P1700","0000109836","00001408","00000017.tif","1464005288"
"30052011","P1700","0009306620","00000374","00000018.tif","1464005286"
"30052011","P1700","0009306620","00000373","00000019.tif","1464005285"
"30052011","P1700","0001061128"," ","00000020.tif","1464005283"
"30052011","P1700","0001061128","11001162938","00000021.tif","1464005283"
"30052011","P1700","0009756970","00000090","00000022.tif","1464005282"
"30052011","P1700","0009223020","00057705","00000023.tif","1464005281"
"30052011","P1700","0009074213","11000465301","00000024.tif","1464005280"
"30052011","P1700","0001087092","00000888","00000025.tif","1464005279"
"30052011","P1700","0009282816","00003133","00000026.tif","1464005278"
"30052011","P1700","0001087830","11000601985","00000027.tif","1464005277"
"30052011","P1700","0001005408","11000601982","00000028.tif","1464005276"
"30052011","P1700","0009007541","11000601983","00000029.tif","1464005275"
"30052011","P1700","0010112728","11000601984","00000030.tif","1464005274"
"30052011","P1700","0000009557","84055907","00000031.tif","1464005273"
"30052011","P1700","0001101478","84254183","00000032.tif","1464005272"
"30052011","P1700","0000095778","83931022","00000033.tif","1464005271"
"30052011","P1700","0000538449","84121431","00000034.tif","1464005270"
"30052011","P1700","0000026111","00000352","00000035.tif","1464005269"
"30052011","P1700","0000026111"," ","00000036.tif","1464005269"
"30052011","P1700","0000026111","00000353","00000037.tif","1464005268"
"30052011","P1700","0009857539","00000864","00000038.tif","1464005267"
"30052011","P1700","0009707682","00001213","00000039.tif","1464005266"
"30052011","P1700","0009707683","00000370","00000040.tif","1464005264"
"30052011","P1700","0001124539","84252258","00000041.tif","1464005263"
"30052011","P1700","0009009705"," ","00000042.tif"," "
"30052011","P1700","0003233399","83414189","00000043.tif","1464005261"
"30052011","P1700","0009302103","00002063","00000044.tif","1464005259"
"30052011","P1700","0003657751","00001703","00000045.tif","1464005258"
"30052011","P1700","0009928036","11001188758","00000046.tif"," "
"30052011","P1700","0009133128","11001262723","00000047.tif","1464005256"
"30052011","P1700","0009133128","11001262722","00000048.tif","1464005255"
"30052011","P1700","0009122420"," ","00000049.tif","1464005254"
"30052011","P1700","0009130773","83418975","00000050.tif","1464005253"
"30052011","P1700","0001101722","83696957","00000051.tif","1464005252"
"30052011","P1700","0003324153","78782839","00000052.tif","1464005251"
"30052011","P1700","0009801940","11000618007","00000053.tif","1464005249"
"30052011","P1700","0000033600","11000401268","00000054.tif","1464005248"
"30052011","P1700","0000003574","00000809","00000055.tif","1464005247"
"30052011","P1700","0009045138","00024797","00000056.tif","1464005246"
"30052011","P1700","0009130139","84203482","00000057.tif","1464005245"
"30052011","P1700","0000174860","11000618213","00000058.tif","1464005244"
"30052011","P1700","0001103524","00001013","00000059.tif","1464005243"
"30052011","P1700","0009124236","83413256","00000060.tif","1464005242"
"30052011","P1700","0000359900","84199683","00000061.tif","1464005240"
"30052011","P1700","0001070250","83781782","00000062.tif"," "
"30052011","P1700","0009296391","83967856","00000063.tif","1464005238"
"30052011","P1700","0009032529","80911029","00000064.tif","1464005236"
"30052011","P1700","0009045138","00024796","00000065.tif","1464005235"
"30052011","P1700","0009075970","00000111","00000066.tif","1464005234"
"30052011","P1700","0009223020","00057695","00000067.tif","1464005233"
"30052011","P1700","0001124454","00000071","00000068.tif","1464005232"
"30052011","P1700","0009009792","83728811","00000069.tif","1464005231"
"30052011","P1700","0009009792","83728810","00000070.tif","1464005230"
"30052011","P1700","0009832711","82712765","00000071.tif","1463003017"
"30052011","P1700","0009123508","00003321","00000072.tif","1463003016"
"30052011","P1700","0000024329","00001193","00000073.tif","1463003015"
"30052011","P1700","0000230063","FNC4 1K10330400","00000074.tif","1463003014"
"30052011","P1700","0010158338","83997746","00000075.tif","1463003013"
"30052011","P1700","0001783890","11001021004","00000076.tif","1463003012"
"30052011","P1700","0001046115","83962691","00000077.tif","1463003011"
"30052011","P1700","0009788594","83899831","00000078.tif","1463003010"
"30052011","P1700","0009401120","80898166","00000079.tif","1463003009"
"30052011","P1700","0000390119","11001162120","00000080.tif","1463003008"
"30052011","P1700","0000035250","00002339","00000081.tif","1463003007"
"30052011","P1700","0000224592","81137412","00000082.tif","1463003006"
"30052011","P1700","0009130059","11000304800","00000083.tif","1463003005"
"30052011","P1700","0001021153","83574592","00000084.tif","1463003004"
"30052011","P1700","0009314000","00000525","00000085.tif","1463003003"
"30052011","P1700","0009298072","00000565","00000086.tif","1463003002"
"30052011","P1700","0009045023","83574828","00000087.tif","1463003001"
"30052011","P1700","0009045174","11001188133","00000088.tif","1463003000"
"30052011","P1700","0009132516","80198309","00000089.tif","1463002999"
"30052011","P1700","0009306537","00001146","00000090.tif","1463002997"
"30052011","P1700","0009853359","74427598","00000091.tif","1463002996"
"30052011","P1700","0009309213","83996192","00000092.tif","1463002995"
"30052011","P1700","0000046618","84252366","00000093.tif","1463002994"
"30052011","P1700","0000043457","1K00000114","00000094.tif","1463002993"
"30052011","P1700"," "," ","00000095.tif","1463002991"
"30052011","P1700","0000003840","11000635587","00000096.tif","1463002990"
"30052011","P1700","0009757023","83657127","00000097.tif","1463002989"
"30052011","P1700","0000693061","00000217","00000098.tif","1463002988"
"30052011","P1700","0000026111","00000354","00000099.tif","1463002987"
"30052011","P1700","0000452194","00000152","00000100.tif","1463002986"
so on and so forth.
Thanks in advance.