Jump to content
Sign in to follow this  
jaehyunb

filesize

Recommended Posts

jaehyunb

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
Beastmaster

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

AHK

Edited by Beastmaster

Share this post


Link to post
Share on other sites
Beastmaster

$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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.