I'm using the rmtshare command to get a list of shares on a server (rmtshare
/L /S servername > shares.txt). I'm trying to figure out how I can go about
writing a script that can be run at will to verify that these shares still
exist. I'm learning vbs as I go along, so I appreciate any help offered.

Re: Verify Network Shares by Rafael

Rafael
Fri Apr 08 00:51:20 CDT 2005

Hi there,

Check this page:
http://support.microsoft.com/?kbid=234234

hope it helps,
Rafael
"Crimson*" <user@isp.com> wrote in message
news:97m5e.2880$3z3.2536@newssvr12.news.prodigy.com...
> I'm using the rmtshare command to get a list of shares on a server
> (rmtshare /L /S servername > shares.txt). I'm trying to figure out how I
> can go about writing a script that can be run at will to verify that these
> shares still exist. I'm learning vbs as I go along, so I appreciate any
> help offered.
>
>



Re: Verify Network Shares by Mark-Allen

Mark-Allen
Fri Apr 08 07:08:13 CDT 2005

Check:
http://www.microsoft.com/technet/scriptcenter/scripts/storage/shares/default.mspx

Also here is a link to another source of script tools:
http://www.microsoft.com/technet/scriptcenter/findit.mspx

And this is a link to the downloaded Script Center help file:


http://www.microsoft.com/downloads/details.aspx?FamilyID=b4cb2678-dafb-4e30-b2da-b8814fe2da5a&DisplayLang=en


This has all the scripts from the Scripting area in it.

Hope this helps.

--
Mark-Allen Perry
ALPHA Systems
Marly, Switzerland
mark-allen_AT_mvps_DOT_org


"Crimson*" <user@isp.com> wrote in message
news:97m5e.2880$3z3.2536@newssvr12.news.prodigy.com...
> I'm using the rmtshare command to get a list of shares on a server
(rmtshare
> /L /S servername > shares.txt). I'm trying to figure out how I can go
about
> writing a script that can be run at will to verify that these shares still
> exist. I'm learning vbs as I go along, so I appreciate any help offered.
>
>



Re: Verify Network Shares by Crimson*

Crimson*
Fri Apr 08 20:51:40 CDT 2005

Thanks to both of you for the links. However, I'm still stuck. Creating
the list of shares is easy enough. I just can't figure out a way to verify
them later. Is there something in Windows that is the equivalent of the
diff command in UNIX? Any other ideas? TIA.



Re: Verify Network Shares by Rafael

Rafael
Fri Apr 08 21:25:27 CDT 2005

Alan Kaplan made a script to delete orphaned shares. Maybe you can modify
it to suit your needs:

http://cwashington.netreach.net/depo/view.asp?Index=1024&ScriptType=vbscript

Rafael
"Crimson*" <user@isp.com> wrote in message
news:MyG5e.77$gI3.15@newssvr11.news.prodigy.com...
> Thanks to both of you for the links. However, I'm still stuck. Creating
> the list of shares is easy enough. I just can't figure out a way to
> verify them later. Is there something in Windows that is the equivalent
> of the diff command in UNIX? Any other ideas? TIA.
>
>