jaehyunb Posted August 27, 2004 Share Posted August 27, 2004 how do i do if file=C:\test.txt is(not)equal to 32303 bytes,goto,a Link to comment Share on other sites More sharing options...
Beastmaster Posted August 27, 2004 Share Posted August 27, 2004 (edited) FileGetSize, FileSize, C:\test.txt If FileSize <> 32303, Goto, a AHK Edited August 27, 2004 by Beastmaster Link to comment Share on other sites More sharing options...
Beastmaster Posted August 27, 2004 Share Posted August 27, 2004 $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 Link to comment Share on other sites More sharing options...
Recommended Posts