Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Mapping and disconnecting network drives
Retrieving the name of the network resource associated with a local device
Mapping and disconnecting network drives

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
Before you begin:

Similar examples:
  • Connecting a local device to a network resource
  • Starting a dialog box for connecting to network resources (mapping network drive)
  • Enumerating Network Resources
  • Retrieving list of available disk drives
  • How to detect when a removable drive gets connected or disconnected
  •  
      Members area. Log in to view this example.
     
      User name:
      Password:
     
     
      Forgot your password?
     
      Sign up for
    the Membership
     
     


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    9123 bytes  
    Created: 2003-02-18 19:21:15  
    Modified: 2011-12-10 09:20:22  
    Visits in 7 days: 198  
    Listed functions:
    GetDriveType
    GlobalAlloc
    GlobalFree
    GlobalSize
    ShellExecute
    WNetAddConnection2
    WNetCancelConnection2
    WNetGetConnection
    Printer friendly API declarations
    My comment:
    Jan.30, 2005: The FoxPro code has been rewritten with API functionality moved to non-visual LogicalDrive class.

    * * *
    Use Windows Script to map a network drive as follows:
    oNet = CreateObject("WScript.Network")
    oNet.MapNetworkDrive("Z:", "\\MyServer\Data")
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.


    Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.242.188.217)
    2 sec.Example: 'How to print FoxPro form'
    7.13 min.Example: 'Storing screen shot of a form to bitmap file'
    7.18 min.Function: 'GetModuleFileName'
    1.78 hrs.Example: 'Displaying standard progress dialog box when copying files'
     Example: 'Printing Image File, programmatically set print page orientation to landscape'
    3.41 hrs.Function: 'MAPIFindNext'
    Function group: 'Simple MAPI'
    8.52 hrs.Example: 'Configuring DEVMODE structure for a printer'
     Example: 'Enumerating ports that are available for printing on a specified server'
    8.98 hrs.Example: 'Placing On-screen Alert on top of all windows'
    9.72 hrs.Function: 'CreateDesktop'
    Function group: 'Window Station and Desktop'
    Google
    Advertise here!