CYBER_Aeon
asked on
Virtual/Network Drives
I can't figure out how someone can emulate a drive under 'My Computer'. I want to create a program-driven virtual drive similar to external Zip drives or programs like WebDrive which allows you to create network drives pointed at FTP servers. Does anybody know how to set up something similar with a Visual Basic program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is simple api code where you can get the virutal drives
Private Type MSGBOXPARAMS
cbSize As Long
hwndOwner As Long
hInstance As Long
lpszText As String
lpszCaption As String
dwStyle As Long
lpszIcon As String
dwContextHelpId As Long
lpfnMsgBoxCallback As Long
dwLanguageId As Long
End Type
Private Declare Function GetLogicalDrives Lib "kernel32" () As Long
Private Sub Form_Paint()
'KPD-Team 1999,2001
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
Dim MBP As MSGBOXPARAMS, LDs As Long, Cnt As Long, sDrives As String
'get the available drives
LDs = GetLogicalDrives
sDrives = "Available drives:" & vbCrLf
For Cnt = 0 To 25
If (LDs And 2 ^ Cnt) <> 0 Then
sDrives = sDrives + " " + Chr$(65 + Cnt) & " :\" & vbCrLf
End If
Next Cnt
Print sDrives
End Sub