unshare drive by commandline?

G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)

Hi,

Does anyone know of a way to unshare (or share) a drive from the
commandline? Specifically I'd like to put the command into a login batch
file.

Thanks for any help!
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.misc (More info?)

net use W: /d
net use W: \\servername\sharename

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"SRB" wrote:
| Hi,
|
| Does anyone know of a way to unshare (or share) a drive from the
| commandline? Specifically I'd like to put the command into a login batch
| file.
|
| Thanks for any help!
|
|