Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save notyalca/bbf61b66c9b324c21ae21273bb80829e to your computer and use it in GitHub Desktop.
Save notyalca/bbf61b66c9b324c21ae21273bb80829e to your computer and use it in GitHub Desktop.
Using a RAM Disk for Google Chrome's Temporary Files
set TEMP=Z:\temp
set TMP=Z:\tmp
start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disk-cache-dir="Z:\Browsers\Chrome"
exit

Using a RAM Disk for Chrome's Temporary Files

(In Windows 10)

Set up The RAM Disk

  1. Create a RAM Disk using one of many popular utilities.
  2. Set the Drive letter of the RAM Disk to Z (or anything else, provided you edit the batch file accordingly)
  3. Create "temp","tmp", and "Browsers\Chrome" directories in the RAM Disk

Create the Batch File

  1. Create the batch file as described in chrome.bat below
  2. Launch Chrome using that batch file

Create Pin-able Shortcut

  1. Create a shortcut to that batch file
  2. Set the icon to fit your preference (probably to %ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe)
  3. Set the shortcut's target to C:\Windows\System32\cmd.exe /C "location_of_batch_file"
@camAtGitHub
Copy link

For anyone else that needed a list but found this post instead: https://en.wikipedia.org/wiki/List_of_RAM_drive_software

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment