Link to home
Start Free TrialLog in
Avatar of samiam41
samiam41Flag for United States of America

asked on

Script to match share name to name of directory

Hey Experts.  I have 200+ directories on my file server that are used as the network share for each user.  We are migrating the file shares from a 2003 file server to a 2012 server and I've copied over the 200+ directories but I need to recreate the shares.  I would rather not do it manually, thus the request for a script to do it.  

The script would need to share the folder out so that the share name matches the name of the folder.  Anyone know a batch script that will work for this?

Thanks Experts!
SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of samiam41

ASKER

Hey Experts!

Thanks for your time and help with this.  I had to run to another set of fires and am just now getting a breather.  

I'm closing this out and awarding points and grade as I know you all need to focus on other questions and I need to work on another project which is now "critical".

You guys are the best!
If any of you experts have a second, I'd greatly appreciate any help with this one!

https://www.experts-exchange.com/questions/28693485/Copy-file-permissions-in-batch-script-with-robocopy.html