Creating/Deleting Network Shares

LeeSalter

Active member
Joined
Feb 13, 2003
Messages
26
Location
In a House
Is there a way in VB .NET or an API that creates/deletes Network shares in an NT/2000 environment.

I can do it by shelling out and using rmtshare, but thats ugly in my opinion. :)
 
I have used this

Code:
net use LPT: \\server\printer

and in VB it would be look like this

Code:
Shell("net use LPT: \\server\printer")

To add a resourec

Code:
Shell("net use XXX: \\server\Share")

to Remove

Code:
Shell("net use /delete LPT: \\server\share")
 
Back
Top