Sign in to follow this  
Followers 0
jaehyunb

filesize

3 posts in this topic

how do i do if file=C:\test.txt is(not)equal to 32303 bytes,goto,a

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

FileGetSize, FileSize, C:\test.txt
If FileSize <> 32303, Goto, a

AHK

Edited by Beastmaster

Share this post


Link to post
Share on other sites

$size = FileGetSize("C:\test.txt") 
If $size <> 32303 Then goto a

AU3

Run, %COMSPEC% /C dir /-c c:\test.txt > c:\test_size.txt
FileReadLine,  Line, c:\test_size.txt, 7
IfInString, Line, 32303, Goto, a

AU2

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0