NTFS file size, how do you guys refresh it to view its current correct size
Posted
by
Michael Goldshteyn
on Server Fault
See other posts from Server Fault
or by Michael Goldshteyn
Published on 2011-02-16T15:18:55Z
Indexed on
2011/02/16
15:27 UTC
Read the original article
Hit count: 560
I work in a command prompt quite often and around many large (remote) log files. Unfortunatelly, the sizes of these files do not update as the logs grow, unless it would appear the files are touched. I usually use hacks like the following from Cygwin to "touch" the file so that its file size updates:
stat file.txt
or
head -c0 file.txt
Are there any native Windows constructs that can refresh the file size from the command prompt, as unintrusively as possible and preferrably without transferring any (remote) data, since I often need to refresh the sizes of very large files remotely, to see how large they have grown.
© Server Fault or respective owner