Share.vbs Syntax

command promptOpen command prompt now.


Use the following syntax to list directory shares on a computer.

One StepShare.Vbs /L [/S server] [/O outputfile] [/U username] [/W password]

Use the following syntax to create a directory share on a computer:

One StepShare.Vbs /C /N name /P path [/T type] [/Vdescription] [/S server] [/O outputfile] [/U username] [/W password]

Use the following syntax to delete a directory share from a computer:

One StepShare.Vbs /D /N name [/S server] [/O outputfile] [/U username] [/W password]

Where:

/L
lists all shares on a computer.
/C
creates a share on a computer.
/D
deletes a share on a computer.
name
is the name of a share to be created or deleted.
path
is the path of the share to be created.
type
is the type of the share to be created. Must be one of Disk, Printer, IPC, and Special.
description
a description for the share to be created.
server
is a computer name.
outputfile
is the output file name.
username and password
are the user name and password of the current user.