Jeff:
Try...
public goWSHNetwork
goWSHNetwork = CreateObject('Wscript.Network')
goWSHNetwork.MapNetworkDrive("S:", "\\SomeServer\SomeShare", .F., gcID, 
gcPASSWORD)
***where parameters are local drive,\\server\share,update 
profile,username,password
trap for errors   1421, 1426,1427,1428,1429,1440
Then to remove drive:
goWSHNetwork.RemoveNetworkDrive("S:",.t.,.f.)  &&remove S:, force off, do not 
update profile

This should get you started...
Regards,

Jack Skelley

________________________________________
From: [email protected] [[email protected]] On Behalf Of 
Jeff Johnson [[email protected]]
Sent: Thursday, May 28, 2009 12:55 PM
To: [email protected]
Subject: Map Network Drive in prg on Vista

I need to map a network drive in a prg on Vista.  Can anyone point me in
the right direction?

TIA

--
Jeff

Jeff Johnson
[email protected]
SanDC, Inc.
623-582-0323
Fax 623-869-0675



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/0b957900b2b8194d998a441195b66038386be4b...@drdsrv03.drdad.thenewarkarena.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to