• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Shares multiple folders through a script

Hey, can anyone give any help in as to how to create a script that will share all folders within a given folder. An example of what I mean would be say in a school where each student has a home folder under their year group, how could I share all these folders individually without having to do soo manually.
I need the script to create a hidden share using the folder name as the share name
Set the share permissions to allow everyone full control
And perhaps disable caching of the folder and its contents

Any help on this would be greatly appreciated.


Woah.. I'm still here?
Staff member
Political User
hmm.. how did I miss this thread before - usually the scripting threads catch my eye..

But I would have suggested both the vbs script approach and/or the dos batch approach myself. You could also look at using the rmtshare utility found in the old NT4 resource kit with the batch file approach. It is a little more versitle than "net share" in that you could use it to create the shares remotely.

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
What a long strange trip it's been. =)

Forum statistics

Latest member