Solved

Virtual/Network Drives

Posted on 2003-11-01
6
262 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

724 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