Hi,
I´m new to imdisk and I´m trying to create a virtual drive with VB.NET.
I tried something with the following code:
Imports LTR.IO.ImDisk.ImDiskAPI Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) ... Dim deviceID As UInt32 = UInt32.MaxValue CreateDevice(10485760, "L:", deviceID) CreateMountPoint("L:", deviceID) End Sub End Class
The drive was created and Windows detected it and informs me that I have to format the drive. But if I want to do that an error occurs: "The drive can not be formatted. Make sure that the disk is properly inserted and is not write-protected and try it again."
I think that my code is not complete.
The drive letter L: is not used of course...
Or rather: I need a little tutorial how to create a virtual drive via VB.NET.
Thank you all for your suggestions! Please ask if you have questions.