Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

TYPE leaves the file open

$
0
0
I'm probably not supposed to TYPE a 4GB binary file, but I tried to do so, redirecting output to NUL, and found that the file was left open. I was trying to get Windows to cache the file.

Code:
d:\projects2022\crc32\x64\release> d 4g
2024-01-08  23:07   4,294,967,296  4g

d:\projects2022\crc32\x64\release> filelock 4g

d:\projects2022\crc32\x64\release> type 4g > nul
d:\projects2022\crc32\x64\release> filelock 4g
 8924  D:\tc31\tcc.exe

Viewing all articles
Browse latest Browse all 1689

Trending Articles