Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 that's ugly in my opinion. :)

  • 1 month later...
  • 3 weeks later...
Posted

I have used this

 

net use LPT: \\server\printer

 

and in VB it would be look like this

 

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

 

To add a resourec

 

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

 

to Remove

 

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

The one and only

Dr. Madz

eee-m@il

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...