Let's say there is a file named app.exe.
dir app.exe
gives:
Volume in drive C has no label.
Volume Serial Number is CAA5-A19C
Directory of C:\Users\Lazy\Downloads\batch
02/06/2015 23:50 20.280.135 app.exe
1 File(s) 20.280.135 bytes
0 Dir(s) 100.233.252.864 bytes free
From all this I need the file size (20.280.135). Ideally, a file named size.txt containing only "20.280.135", spaces and/or new lines should be removed. The ideia behind is to use that file (size.txt) as input in a LaTeX document.
How to get only the file size from the dir command?