Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

File size refresh in folders

Jan 7, 2015 8:12AM PST

Hi, quite a trivial question, i know, but it's bugging me and i'm hoping someone can help please

I use .bat files and rtmpdump to record some webstreams, and since i changed to windows 8.1, the "size" of the active recordings stay at 0kb, even though they are actively collecting data. Before on windows 7 i could right click in the folder and click refresh and the "size" would update to what it is currently at while it's still recording, as seen here for the .flv file:

http://thumbnails109.imagebam.com/37981/cdd428379802929.jpg

When i close the command to end the recording, the file size shows but only then. Can anyone tell me how to fix this please so that it shows how big the file is when i refresh the folder? thanks

Discussion is locked

- Collapse -
Answer
TRUE!
Jan 7, 2015 8:49AM PST

This is something you should have seen dating back to Windows 1.0 (or for those that used DesqView, you could see this there.)

Nothing's wrong. It's how it works. As to Windows 7, it happened there as well so anyone's guess how your prior machine differed.

Need to deep dive why Microsoft did that? Read http://blogs.msdn.com/b/oldnewthing/archive/2011/12/26/10251026.aspx
Bob

- Collapse -
thanks
Jan 7, 2015 9:10AM PST

thanks, i had already come across that link earlier when searching around but it's all foreign to me, i'm not that advanced even if that may be simple to others!

so, there is no way to "fix" it?

- Collapse -
Sure. The article noted a way with code.
Jan 7, 2015 9:17AM PST

If you want to update all file directory entries (rather than a specific one), you can build the loop yourself:

// functions ProcessOneName and EnumerateAllNames
// incorporated by reference.

void UpdateAllFileDirectoryEntries(__in PCWSTR pszFileName)
{
EnumerateAllNames(pszFileName, UpdateFileDirectoryEntry);
}


So you could go get Visual Express and write a small app to implement that. Maybe some app in your old 7 system did that and you didn't figure out it added this.

I felt the overhead to do this wasn't worth it.
Bob

- Collapse -
Oops. That's done inside the app writing it out.
Jan 7, 2015 9:24AM PST