Update script to create NinjaTrader database folder if it doesn't exist already
This commit is contained in:
parent
f58ad9590c
commit
2331aa24dc
16
ram_disk.bat
16
ram_disk.bat
@ -1,15 +1,17 @@
|
|||||||
REM Run as administrator or else the disk will not be formatted.
|
REM Run as administrator or else the disk will not be formatted.
|
||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
REM Set the desired drive letter and size for the RAM disk.
|
REM Set the desired drive letter and size for the RAM disk.
|
||||||
SET DriveLetter=R:
|
SET DriveLetter=R:
|
||||||
SET Size=10240M
|
SET Size=10240M
|
||||||
|
|
||||||
REM Check if the drive is already mounted.
|
REM Create the RAM disk if it doesn't exist.
|
||||||
if exist %DriveLetter% goto End
|
if not exist %DriveLetter% (
|
||||||
|
imdisk -a -s %Size% -m %DriveLetter% -p "/fs:NTFS /q /y"
|
||||||
|
)
|
||||||
|
|
||||||
REM Create the RAM disk.
|
REM Check if the "db" folder exists on the RAM disk and create it if it doesn't.
|
||||||
imdisk -a -s %Size% -m %DriveLetter% -p "/fs:NTFS /q /y"
|
REM This is necessary for NinjaTrader to run properly.
|
||||||
|
if not exist %DriveLetter%\db\ (
|
||||||
:End
|
mkdir %DriveLetter%\db
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user