Use Share.vbs to list or create (directory) shares on a computer.
Share.vbs Topics:
Share.vbs Syntax
Share.vbs Example