you dont need vb code, you can make a batch that does it.
here is an example that makes sure the system default shares are in place...
@ECHO OFF
CD\
NET SHARE C$=C:\
NET SHARE D$=D:\
NET SHARE ADMIN$
NET SHARE IPC$
(you can remove D$ line if you dont have a hdd as D)
now add whatever share you need, for example
NET SHARE DadsStuff=C:\somefolder\somesubfolder\blah
alternatively, I have a gui that allows you to opn and close shares by generating and executing bat files on the fly. I always close all of my default shares when I boot up. It makes use of .net and WMI objects to report all of the currently opened shares on the system.
if you want the app I will post it up on my server.
DBP_NETLIB_v1.4.3 - 65 FREE Functions * Click Logo