@DRIVETYPE shows IMDISK as 3 Fixed Disk, not 6 RAM Disk

Code:
c:\users\jlc\utils>ver

TCC  24.02.48 x64   Windows 7 [Version 6.1.7601]

I am using IMDISK;
Code:
c:\users\jlc\utils>imdisk --version
Control program for the ImDisk Virtual Disk Driver for Windows NT/2000/XP.
Version 2.0.10 - (Compiled Nov 25 2018)

Copyright (C) 2004-2018 Olof Lagerkvist.

http://www.ltr-data.se     olof@ltr-data.se

...to create a RAM Disk;
Code:
@setlocal
@echo off
iff exist t:\ then
  echo T: Drive already exists
else
  imdisk -a -s 512M -m T: -p "/fs:ntfs /q /y" -o awe
endiff
endlocal

...but @DRIVETYPE returns 3 Fixed Disk instead of 6 RAM Disk.
Code:
c:\users\jlc\utils>echo %@drivetype[t:]
3

...and I am not sure why.

Joe
 
May 20, 2008
10,679
83
Syracuse, NY, USA
In 2009, Steve Fabian reported the same with regard to Qsoft's ramdisk (claimed to be based on MS's published method).
 
May 20, 2008
10,679
83
Syracuse, NY, USA
Windows 10 has:

1. c:\windows\inf\ramdisk.inf
2. c:\windows\system32\drivers\ramdisk.sys
3. HKLM\System\CurrentControlSet\Services\Ramdisk

Does anyone know what they are all about?
 
Aug 23, 2010
590
7
They are for iSCSI ramdisk: target.
The logic is, you create a `ramdisk:…` target, then make a client connection to yourself and use it as your local disk.