Reply
Old August 13th, 2008 Top | #1
 
jonny813's Avatar
OSNN Addict
Joined: December 2006
Posts: 88
Reputation: 60
Power: 64

Default 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.

Samsung Q210
Intel Core 2 Duo (Centrino 2) P8400 @ 2.26Ghz - 5.2
3GB Samsung 666Mhz RAM - 5.9
nVidia GeForce 9200M GS - 4.4(Aero), 5.1(Gaming)
320GB HD (5,400RPM) - 5.3
Windows Vista Ultimate SP1 (32bit)
jonny813 is offline   Reply With Quote
Old August 26th, 2008 Top | #2
 
ZeroHour's Avatar
ho3 ho3 ho3
Joined: March 2004
Location: Scotland
Posts: 1,111
Reputation: 1032
Power: 118

Default Re: Shares multiple folders through a script

Have a look at:
http://www.edugeek.net/forums/script...e-folders.html

<Z>
EduGeek.net -The I.T. professionals' life line
ZeroHour is offline   Reply With Quote
Old August 26th, 2008 Top | #3
 
jonny813's Avatar
OSNN Addict
Joined: December 2006
Posts: 88
Reputation: 60
Power: 64

Default Re: Shares multiple folders through a script

Originally Posted by ZeroHour View Post
I know, I'm also known as originofsymmetry

Samsung Q210
Intel Core 2 Duo (Centrino 2) P8400 @ 2.26Ghz - 5.2
3GB Samsung 666Mhz RAM - 5.9
nVidia GeForce 9200M GS - 4.4(Aero), 5.1(Gaming)
320GB HD (5,400RPM) - 5.3
Windows Vista Ultimate SP1 (32bit)
jonny813 is offline   Reply With Quote
Old August 26th, 2008 Top | #4
 
ZeroHour's Avatar
ho3 ho3 ho3
Joined: March 2004
Location: Scotland
Posts: 1,111
Reputation: 1032
Power: 118

Default Re: Shares multiple folders through a script

LOL sorry did not realise. At least others will find the solution too

<Z>
EduGeek.net -The I.T. professionals' life line
ZeroHour is offline   Reply With Quote
Old August 26th, 2008 Top | #5

OSNN Folding Team  
fitz's Avatar
XPista7eopard*ix
Joined: April 2004
Location: Chicagoland
Posts: 4,014
Reputation: 2947
Power: 164

Default Re: Shares multiple folders through a script

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.
fitz is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expanding Multiple Folders in Explorer eee Windows Desktop Systems 2 July 31st, 2006 7:43pm
Network Shares chaos945 Windows Desktop Systems 5 November 8th, 2004 10:43pm
Password Protect XP Shares vonschlieffen Windows Desktop Systems 10 April 27th, 2004 6:53pm
guest account on 2k and shares, help bytezboy Windows Desktop Systems 2 July 24th, 2003 8:04am
Network shares - name length. insaNity Windows Desktop Systems 2 May 9th, 2002 3:33pm