I have a folder of 150,000 pdf files and I need to copy 20,000 of them to
another folder. The ones I need to copy are in a .txt file. Attached is a
sample of the input .txt file and a dos directory of the folder containing
the files. I'm not sure of the best way to accomplish this.
Thank you in advance for your help.
Sample input file:
12347424
12347425
12347426
12347427
Sample dir on folder:
03/20/2008 09:21 AM 145,257 000000011479
[7ac0c741-9d2f-4a1d-9dbf-8de27ca0abb4].pdf
03/20/2008 09:21 AM 154,655 000000011600
[cd752a5a-388a-4bad-9a52-fb3711f685b8].pdf
03/20/2008 09:21 AM 145,556 000000015234
[4344f5ff-fa58-4e20-bf27-697c71a81fbc].pdf
03/20/2008 09:21 AM 152,785 000012347424
[44cc0d43-a80d-4415-8e92-b6a4f62986b4].pdf
03/20/2008 09:21 AM 145,551 000012347425
[0ea7b60a-3631-4f64-91fa-6e385296f18f].pdf
Volume in drive C has no label.
Volume Serial Number is 0873-E099
Directory of C:\Documents and Settings\test
04/09/2008 03:57 PM <DIR> .
04/09/2008 03:57 PM <DIR> ..
03/20/2008 09:21 AM 145,647 000000000737
[f05d4dcc-8c0e-4660-b9f7-83708dfc782e].pdf
03/20/2008 09:21 AM 144,945 000000001237
[b951dfd8-af0e-4243-9951-0cf63b7f5f1a].pdf
03/20/2008 09:21 AM 145,984 000000001491
[7a9d5843-55d7-4a37-9903-a210ff538d12].pdf
03/20/2008 09:21 AM 145,644 000000001777
[dd9b13cc-f088-4957-a2df-a9dac2959e81].pdf
03/20/2008 09:21 AM 145,730 000000001995
[cb12e1ef-074a-4b41-abfc-6aa2048d5008].pdf
03/20/2008 09:21 AM 149,319 000000002609
[dc64fabf-fe2f-47bf-90a4-f1eef43586d6].pdf
03/20/2008 09:21 AM 145,994 000000002789
[b7242dd2-cfa9-435c-a8f7-05d9d500dbcc].pdf
03/20/2008 09:21 AM 145,788 000000004169
[9ed9f002-12e2-4a7a-952e-2d2a5a44b775].pdf
03/20/2008 09:21 AM 152,189 000000004247
[18b05f77-d429-4231-8e99-541e07613e3a].pdf
03/20/2008 09:21 AM 161,951 000000008623
[decd3cb9-c6bf-4d17-9bdd-cb1d63023aeb].pdf
03/20/2008 09:21 AM 147,243 000000010957
[1ae26ed1-8114-49ab-9eeb-40f636ffd257].pdf
03/20/2008 09:21 AM 145,257 000000011479
[7ac0c741-9d2f-4a1d-9dbf-8de27ca0abb4].pdf
03/20/2008 09:21 AM 154,655 000000011600
[cd752a5a-388a-4bad-9a52-fb3711f685b8].pdf
03/20/2008 09:21 AM 145,556 000000015234
[4344f5ff-fa58-4e20-bf27-697c71a81fbc].pdf
03/20/2008 09:21 AM 152,785 000012347424
[44cc0d43-a80d-4415-8e92-b6a4f62986b4].pdf
03/20/2008 09:21 AM 145,551 000012347425
[0ea7b60a-3631-4f64-91fa-6e385296f18f].pdf
04/09/2008 03:57 PM 0 dir.txt
17 File(s) 2,374,238 bytes
2 Dir(s) 39,714,271,232 bytes free
12347424
12347425
12347426
12347427
12347428
12347429
12347430
12347431
12347432
12347433
12347434
12347435
12347437
12347438
12347439
12347440
12347442
12347443
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor