RamDisk is a library for create virtual disk drive on system memory (you have to have ImDisk installed, which is used in the backend - download link of current stable version 2.0.10) which supports Windows NT/2000/XP/Vista/7/8/8.1/10 and Windows Server 2003/2003 R2/2008/2008 R2/2012/2012 R2, 32 and 64 bit (and ARM) editions.
PM> Install-Package RamDisk
Please note that all operations require your application to have administrator priviliges.
Mount a virtual disk drive for example size : 512MB and fileSystem : NTFS and name : 'Z' and label : "RamDisk".
using RamDisk;
RamDrive.Mount(512, FileSystem.NTFS, 'Z', "RamDisk");
//or simpler (other parameters except size has default value)
RamDrive.Mount(512);
Then Unmount drive name : 'Z'
using RamDisk;
RamDrive.Unmount('Z');
//or simpler (drive name has default value 'Z')
RamDrive.Unmount();
Create an issue if you find a BUG or have a Suggestion or Question. If you want to develop this project, Fork on GitHub and Develop it and send Pull Request.
A HUGE THANKS for your help.
RamDisk is Copyright © 2020 Mohammd Javad Ebrahimi under the MIT License.