Can somebody please help me how to do this in vb script...

I want to create script that will toggle my sharing property of my main drive [c:\ for this matter] automatically... Is there a way to set it programmatically?