Hi,
I am not familiar with much of WSH, and would like to see a sample script or
scripts that:
1) Checks to see if a given network share exists
2) Delete a network share
3) Create a network share
4) Move files to the recycle bin (as opposed to deleting them)

I am trying to use WshShell.Exec with the DOS net share command but the
correct syntax and error handling eludes me.

Are there any other objects I could use that would make this task easier?
For example, I have been able to find and use SQLDMO objects to do things
like backing up and restoring SQL Server databases.

I would appreciate any pointers to useful samples or books.

Thanks in advance.
Chris Hough

Re: Sample to check share, set up share by SkyWalker

SkyWalker
Tue Nov 30 22:12:06 CST 2004

This link should give you the examples you need.

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

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...