Batch script for creating a ram disk
This commit is contained in:
commit
0820edd18e
15
ram_disk.bat
Normal file
15
ram_disk.bat
Normal file
@ -0,0 +1,15 @@
|
||||
REM Run as administrator or else the disk will not be formatted.
|
||||
|
||||
@echo off
|
||||
|
||||
REM Set the desired drive letter and size for the RAM disk.
|
||||
SET DriveLetter=R:
|
||||
SET Size=10240M
|
||||
|
||||
REM Check if the drive is already mounted.
|
||||
if exist %DriveLetter% goto End
|
||||
|
||||
REM Create the RAM disk.
|
||||
imdisk -a -s %Size% -m %DriveLetter% -p "/fs:NTFS /q /y"
|
||||
|
||||
:End
|
Loading…
Reference in New Issue
Block a user