Suppose I have the following 2 files
1.txt
2.txt
Now I get a variable value, for example HEDY, which is the first value in the line in file 1.txt.
I perform CRC32 checksum on the files in the paths in 2.txt (if it is a compressed file, first EXPAND), run CRC32.EXE, assume that the CRC output result is the 2nd token in the first line, then compare with the 2nd line value in file 1.txt, IF FIND, then assign the corresponding path to a variable.
How to write code efficiently, concisely and understandably without using third-party programs? Thanks.
To supplement, the CRC value check is only run once, but the result of the check may be called multiple times, so generating the following result file is more appropriate.
[ Last edited by quya on 2008-7-9 at 12:01 PM ]
1.txt
HPQ CD4E1902
Pavilion 06D652A4
Lenovo 5237B729
LEGEND 7B06BD13
IBM D7A77612
TOSHIBA A16F9D62
FUJITSU 10045CFA
FUJITSUS D2D64C41
HEDY 162C7931
Founder 3A0C01212.txt
G:\I386\OEMBIOS.CA_
G:\WXPOEM\1\OEMBIOS.CAT
G:\WXPOEM\2\OEMBIOS.CAT
G:\WXPOEM\3\OEMBIOS.CA_
G:\WXPOEM\4\OEMBIOS.CAT
G:\WXPOEM\5\OEMBIOS.CAT
G:\WXPOEM\6\OEMBIOS.CAT
G:\WXPOEM\7\OEMBIOS.CAT
G:\WXPOEM\8\OEMBIOS.CAT
F:\cpl\thif\OEMBIOS.CA_
F:\新建文件夹\Acer\OEMBIOS.CA_
F:\新建文件夹\xxx\OEMBIOS.CA_
F:\新建文件夹\Lenovo\oembios.ca_
F:\新建文件夹\xx\OEMBIOS.CA_Now I get a variable value, for example HEDY, which is the first value in the line in file 1.txt.
I perform CRC32 checksum on the files in the paths in 2.txt (if it is a compressed file, first EXPAND), run CRC32.EXE, assume that the CRC output result is the 2nd token in the first line, then compare with the 2nd line value in file 1.txt, IF FIND, then assign the corresponding path to a variable.
How to write code efficiently, concisely and understandably without using third-party programs? Thanks.
To supplement, the CRC value check is only run once, but the result of the check may be called multiple times, so generating the following result file is more appropriate.
LEGEND 7B06BD13 F:\新建文件夹\xxx\OEMBIOS.CA_
HEDY 162C7931 G:\WXPOEM\5\OEMBIOS.CAT[ Last edited by quya on 2008-7-9 at 12:01 PM ]
我怎么找不到一个比我注册日期早的人? 难道我是传说中的超级管理员? 其实我只是个潜水冠军而已.


