Share me!

โ€”

by

in

On Windows 2003 Server, if you had a directory full of directories that you want to share on the network, you can do this. Assuming you are already in the directory that holds them:

for /D  %A in (*.*) do net share %A=<drive>:<directory>%A /GRANT:”domain users”,FULL

example:  for /D  %A in (*.*) do net share %A=c:example%A /GRANT:”domain users”,FULL