好吧....
谁解释一下,这个程序传完文件没有像帮助文件里写的那样SET @Error=1,于是它就在那里不断复写....HotKeySet("{F8}","QUIT")
Func QUIT()
Exit
EndFunc
Global $READPATH,$WRITEPATH,$READ,$WRITE,$DATA,$KB=0
$READPATH=InputBox("FILE","Target:")
$WRITEPATH=InputBox("FILE","To:")
$NAME=InputBox("FILE","Name:")
$READ=FileOpen($READPATH,16)
$WRITE=FileOpen($WRITEPATH&$NAME,16+2)
While (@error = 0)
$DATA=FileRead($READ,1024)
FileWrite($WRITE,$DATA)
$KB=$KB+1
ToolTip("KB:"&$KB,0,0)
WEnd
MsgBox(0,"FILE","DONE!")
FileClose($READ)
FileClose($WRITE)
|