Skip to content

Instantly share code, notes, and snippets.

@jonforums
Created July 20, 2011 16:28
Show Gist options
  • Save jonforums/1095299 to your computer and use it in GitHub Desktop.
Save jonforums/1095299 to your computer and use it in GitHub Desktop.
My imdisk RAMdisk helper script
@echo OFF
if "%1" == "" goto :EOS
if "%2" == "" goto :EOS
imdisk -a -t vm -m %1 -s %2 -o rw,hd -p "/fs:ntfs /q /y"
goto :eof
:EOS
echo usage: add_ramdisk MOUNT_POINT SIZE
echo.
echo add_ramdisk V: 1100M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment