本帖最后由 3mile 于 2010-10-4 10:07 编辑
批处理解密如下cls
@echo off
title search RAW data...
color 2f
move ID.txt ID.zip
copy *.txt all.txt>nul
move ID.zip ID.txt
for /f %%i in (ID.txt) do @findstr "%%i" all.txt>>findout.txt
del all.txt
for /f "tokens=*" %%b in ('dir') do echo "%%b"|find "findout">nul && for /f "tokens=3" %%c in ("%%b") do if "%%c"=="0" goto nofind
if not "%%c"=="0" goto find
:nofind
@echo off
del findout.txt>nul
@echo Not find any relative data
pause && exit
:find
pause|@echo Found RAW data in findout.txt file...
看看这个合不合用
#include <array.au3>
#include <file.au3>
Local $str
If FileExists("findout.txt") Then FileDelete("findout.txt")
$filelist=_FileListToArray(@ScriptDir,"*.txt",0)
$input=InputBox("查找","输入要查找的内容")
If $input='' Then
MsgBox(0,0,"没有输入要查询的内容,程序退出")
Exit
Else
$find='.+'&$input&'.+'
For $i=1 To $filelist[0]
If $filelist[$i]='ID.txt' Then ContinueLoop
If StringRegExp(FileRead($filelist[$i]),$find,0) Then
$temp=StringRegExp(FileRead($filelist[$i]),$find,3)
$str&=_ArrayToString($temp,@CRLF)&@CRLF
EndIf
Next
If StringLen($str)>0 Then
FileWrite("findout.txt",$str)
ShellExecute("findout.txt")
Else
MsgBox(0,0,"没有查找到内容")
EndIf
EndIf
|