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:
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.
Update: Doing a dir on the file itself seems to update its size:
The question now is: How do you update all file sizes in a directory, so that they are current? That is:
mystery command, then:
dir should display correct current file sizes.