Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[3326] Virtual Drive

Last post 06-07-2007 8:53 PM by Roeland. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [3326] Virtual Drive

    This thread is for discussions of Virtual Drive.

    • Post Points: 35
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 05-19-2003 12:50 PM In reply to

    • jawsper
    • Not Ranked
    • Joined on 04-11-2003
    • Junior Member
    • Points 25
    It really works!
    And fast too!!
    ----------------------------------
    so, why arent you reading my extremely interesting post above? ;)
    • Post Points: 10
  • 06-02-2003 12:20 PM In reply to

    BE CAREFUL

    Be very careful using the SUBST command on WinNT/2000/XP, it is dangerous.  NTFS permissions can conflict with each other say drive F: is actually a drive created from a subdir of Drive C:, applying NTFS permissions to drive C: that conflict with drive F: can cause NTFS corruption.  You may find yourself logged in as Admin and no longer able to access files or whole directories due to the corruption.  Microsoft has acknowledged this and suggests against the usgae of SUBST on WinNT based machines.  Win9x/ME does not have this issue due to lack of NTFS.
    • Post Points: 0
  • 11-02-2003 3:32 AM In reply to

    That's one way, I suppose, but....

    But here's a much cleaner method...



    Option Explicit

    Private Const DDD_REMOVE_DEFINITION As Long = &H2

    Private Declare Function DefineDosDevice Lib "kernel32" Alias "DefineDosDeviceA" (ByVal dwFlags As Long, ByVal lpDeviceName As String, Optional ByVal lpTargetPath As String = vbNullString) As Long


    Public Function Subst(ByVal Drive As String, ByVal Path As String) As Boolean
      Subst = CBool(DefineDosDevice(0, Drive, Path))
    End Function

    Public Function UnSubst(ByVal Drive As String) As Boolean
      UnSubst = CBool(DefineDosDevice(DDD_REMOVE_DEFINITION, Drive))
    End Function



    ...and an example...


    If Not Subst("P:", "C:\My Documents\Shameless Porn") Then MsgBox Err.LastDLLError

    ...and, subsequently....

    If Not UnSubst("P:") Then MsgBox Err.LastDLLError


    ... Groovy, no?
    • Post Points: 0
  • 11-02-2004 12:53 AM In reply to

    • syed7981
    • Not Ranked
    • Joined on 11-01-2004
    • New Member
    • Points 15

    Help Me

    OK..nice code.. but how about this..can anybody help e to solve this problems.

    -->i'm planning to create the virtual drive in windows 2000 and map some webserver folder or ftp folders to that  
        drive and allow client to work as his physical drive..
    --> pls Help me as soon as possible
    • Post Points: 15
  • 12-11-2005 3:49 AM In reply to

    Filesystem Question

    I have XP with my primary drive NTFS but I intend to use this program for an external FAT32 drive. Will I still risk NTFS corruption, or am I safe with the FAT32?
    • Post Points: 0
  • 08-07-2006 8:05 PM In reply to

    • ianp
    • Not Ranked
    • Joined on 08-07-2006
    • New Member
    • Points 5

    Re: WOW

    Sorry for being a bit of a thick. Please can tell me how you got the code to work. I'm using VB 2005 express edition, and have managed to build and execute the code. But all I get is a virtual hard drive. I don't see how the code in the module gets called. Its the same as if I  use subst from the command line.

    Regards ianp

    • Post Points: 5
  • 12-23-2006 12:02 PM In reply to

    Re: Help Me

    Hey syed..

    I have same problem....

    I also want to map virtual drive in windows 2000 to some webserver folder or ftp folders and allow client to work as his physical drive..

    can any body help this out?

    I have already made a mapping by asp.net but it is just working in internet explorer window..

    Thanks in advance

     

    • Post Points: 5
  • 12-23-2006 12:05 PM In reply to

    Virtual storage drive like GDrive( Google virtual drive)

    Hey Friends,
    I want to develop a virtual storage drive project in .Net. but confused about how

    to start?
    I have alerady created a web drive solution which working using WebDav protocol,

    but it uses Iexplorer to display files and folders.
    Whereas i want to display the folders and files in Windows explorer (Something

    exactly like What Gdrive software does)

    I want to something like this..
    Once i input "https://<server address>", "User Name", "Password". I want to get

    the all of my folders and files from taht server folder should be displayed in

    windows explorer

    Can anyone help me to distingush the webdrive and virtual windows drive?
    Please post the articles or sourcecode related to this topic..

    Thanks in advance

    • Post Points: 10
  • 02-21-2007 9:01 PM In reply to

    • Huberth
    • Not Ranked
    • Joined on 02-21-2007
    • New Member
    • Points 5

    Re: Help Me

    Hi,

    I have the same problem, so do you have any idea for make that?



    • Post Points: 5
  • 06-07-2007 8:53 PM In reply to

    • Roeland
    • Not Ranked
    • Joined on 06-07-2007
    • Netherlands
    • New Member
    • Points 5

    Re: Virtual storage drive like GDrive( Google virtual drive)

    Hello,

    I have the same problem. have you found a solution?

    Cheers,

    Roeland

    • Post Points: 5
Page 1 of 1 (11 items)