I installed imdisk, and then used the following command to create the in-memory disk:
imdisk -a -s 1G -m M: -p "/fs:NTFS /V:MemDisk /q /y"
I then copied a whole directory to the M: disk, and then tried to execute an .exe file from M:, e.g.
$>M:\somefolder\foobar.exe
The result is:
The system cannot find the file: M:\somefolder\foobar.exe.
Does anyone know what went wrong?