Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping a network drive
Message
From
12/01/1999 13:20:46
 
 
To
12/01/1999 12:06:47
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00175103
Message ID:
00175154
Views:
31
>I am trying to map to a network drive
>The problem is when I issue my map command:
>
>lcMap = "MAP i:=s3\sys:\"
>
>Run &lcMap The Dos Window blinks on
>Run /N &lcMap The Dos window Stays on
>
>Is there a way to map a drive without the Dos window being shown?

Several - you can launch the Map command using CreateProcess() with a minimized or hidden window (you can use the API_APPRUN class in the Files section here on UT to do that) or you can use an API call such as WNetAddConnection() to perform the drive mapping for you. The API call is preferable, unless you need some of the specialized clauses of the Novell Map command to map search drive and/or assign root mappings.

>
>Thanks in advanced
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform