Skip to content

Instantly share code, notes, and snippets.

@oakwhiz
Last active August 29, 2015 14:10
Show Gist options
  • Save oakwhiz/7649ca66c3ccb039c735 to your computer and use it in GitHub Desktop.
Save oakwhiz/7649ca66c3ccb039c735 to your computer and use it in GitHub Desktop.
read folder into windows disk cache (simple one-liner)
REM precache files into windows disk cache
REM first argument should be the name of a folder
REM all the files will be recursively copied to nul in order to put them in the disk cache
FOR /R %1 %%F IN (*) DO copy /b "%%F" nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment