Mapping Drives

How to map drives?

Rowin

Comments

  • : How to map drives?
    From [b]SysUtils.hpp[/b] use the function DiskFree:

    [code]
    #include
    if (DiskFree(1)==-1) ShowMessage("There is no disk in A");
    else ShowMessage("There is a disk in A");
    [/code]

    Then you can just loop through all the drives.

    Good luck,
    bilderbikkel

  • : : How to map drives?
    : From [b]SysUtils.hpp[/b] use the function DiskFree:
    :
    : [code]
    : #include
    : if (DiskFree(1)==-1) ShowMessage("There is no disk in A");
    : else ShowMessage("There is a disk in A");
    : [/code]
    :
    : Then you can just loop through all the drives.
    :
    : Good luck,
    : bilderbikkel
    :

    Hi!! I actually need to map network drives. I know in vb there is a function called mapnetworkdrives. what is the corresponding function in c++ builder?
    :

  • : Hi!! I actually need to map network drives. I know in vb there is a function called mapnetworkdrives. what is the corresponding function in c++ builder?

    Do
    * 'Search | Find in Files'
    * set Options to 'Case Sensitive' and 'Regular Expressions' checked
    * set Where to 'Search in Directories'
    * Browse to the 'Include' folder of C++ Builder
    * Set the 'Text to find' to 'Network'
    Sounds like plenty of options to find out!

    Could you post the solution when you've found it?

    Good luck,
    bilderbikkel

  • : : Hi!! I actually need to map network drives. I know in vb there is a function called mapnetworkdrives. what is the corresponding function in c++ builder?
    :
    : Do
    : * 'Search | Find in Files'
    : * set Options to 'Case Sensitive' and 'Regular Expressions' checked
    : * set Where to 'Search in Directories'
    : * Browse to the 'Include' folder of C++ Builder
    : * Set the 'Text to find' to 'Network'
    : Sounds like plenty of options to find out!
    :
    : Could you post the solution when you've found it?
    :
    : Good luck,
    : bilderbikkel
    :
    :

    Hi,
    I have done a search but i don't understand what I'm looking for.

    Rowin

  • : : : Hi!! I actually need to map network drives. I know in vb there is a function called mapnetworkdrives. what is the corresponding function in c++ builder?
    : I have done a search but i don't understand what I'm looking for.
    A function called e.g. 'MapNetworkDrives' or something alike.
    Good luck,

    bilderbikkel

  • : : : : Hi!! I actually need to map network drives. I know in vb there is a function called mapnetworkdrives. what is the corresponding function in c++ builder?
    : : I have done a search but i don't understand what I'm looking for.
    : A function called e.g. 'MapNetworkDrives' or something alike.
    : Good luck,
    :
    : bilderbikkel
    :
    : Unfortunately there's no such function nor anything alike....

    Rowin

  • : : Unfortunately there's no such function nor anything alike....
    Too bad. Better luck next time!
    See ya,
    bilderbikkel

  • : : : Unfortunately there's no such function nor anything alike....
    : Too bad. Better luck next time!
    : See ya,
    : bilderbikkel
    :
    : ok thanks
    rowin

  • : How to map drives?
    :
    Have a look at the WNetAddConnection2 and WNetAddConnection3 functions.

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/wnetaddconnection2.asp

    Stuart
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories