2013-03-19 200 views

回答

1

Basicaly,你可以使用FileSeek从末尾获得第0个字节的位置。

FileOpen $0 somefile.txt r ;open somefile in read mode 
FileSeek $0 0 END $1   ;ask for the 0th byte from the end, and put the value in $1 
FileClose $0 
;here you have the size in $1 

这保留沿FileSizeNew function那得到的文件名,并通过堆栈返回结果的变量更方便的方式使用。