|
Net share
Manages shared resources.
Used without parameters, net share
displays information about all of the resources that are shared
on the local computer.
Syntax
net share [ShareName]
net share [ShareName=drive:path
[{/users:number|/unlimited}] [/remark:"text"]
[/cache: {manual|automatic|no}]] net
share [ShareName [{/users:number|unlimited}]
[/remark:"text"] [/cache: {manual|automatic|no}]]
net share [{ShareName|drive:path}
/delete]
Parameters
- ShareName
- Specifies the network name of the shared resource. Type net share
with a ShareName to display information about that share only.
- drive:path
- Specifies the absolute path of the directory to be shared.
- /users:number
- Sets the maximum number of users who can simultaneously access the
shared resource.
- /unlimited
- Specifies an unlimited number of users who can simultaneously access
the shared resource.
- /remark:"text"
- Adds a descriptive comment about the resource. Enclose the text in
quotation marks.
- /cache:automatic
- Enables offline client caching with automatic reintegration.
- /cache:manual
- Enables offline client caching with manual reintegration.
- /cache:no
- Advises the client that offline caching is inappropriate.
- /delete
- Stops sharing the shared resource.
- net help command
- Displays Help for the specified net command.
Remarks
Examples
To display information about shared resources on the computer, type:
net share
To share a computer's C:\Data directory with the share name DataShare and
include a remark, type:
net share DataShare=c:\Data /remark:"For department 123."
To stop sharing the DataShare folder you created in the previous example,
type:
net share DataShare /delete
To share a computer's C:\Art Lst directory with the share name List,
type:
net share list="c:\art lst"
Formatting legend
Format |
Meaning |
Italic |
Information that the user must supply |
Bold |
Elements that the user must type exactly as shown |
Ellipsis (...) |
Parameter that can be repeated several times in a command line |
Between brackets ([]) |
Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} |
Set of choices from which the user must choose only one |
Courier font |
Code or program output |
|