|I need my batch file to do something (or not) based on the size of another file. |
I have a file called c:\myfile.txt and I need a batch file that will read myfile.txt's file size into a variable. I tried doing a dir c:\myfile.txt > text.txt and then reading in that text file but I don't know how to get the filesize only into a variable. Anybody?????