2013-03-19 59 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那得到的文件名,並通過堆棧返回結果的變量更方便的方式使用。

相關問題