Solved

Virtual/Network Drives

Posted on 2003-11-01
6
255 Views
Last Modified: 2013-11-15
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?
0
Comment
Question by:CYBER_Aeon
6 Comments
 

Accepted Solution

by:
Miesepies earned 100 total points
ID: 9666565
My guess is no...you can't. If I'm not mistaken, you need to write a device driver to emulate a drive. And device drivers are written in C & assembly.

It is possible to write a name extension (a 'virtual directory' visible in Windows Explorer) in VB though... However, don't get your hopes up, since its rather complicated, and you need a few hacks here and there to get it up and running in VB6. If you are really interested, check out Visual Basic Shell Programming by J.P. Hamilton (http://www.oreilly.com/catalog/vbshell).

Michel
0
 
LVL 5

Assisted Solution

by:fantasy1001
fantasy1001 earned 100 total points
ID: 9668168
0
 
LVL 1

Expert Comment

by:mahesh_mp
ID: 9670136
hello CYBER_Aeon
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
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now