Net share command details

Source: Internet
Author: User
Tags net command

Net share command. Net share command. Net share to manage shared resources. Use net share without parameters to display information about all shared resources on the local computer. Www.2cto.com 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] parameter ShareName www.2cto.com specifies the Network Name of the shared resource. Enter the net share command with the ShareName parameter to display only information about the share. Drive: path specifies the absolute path of the directory to be shared. /Users: number indicates the maximum number of users who can access Shared resources at the same time. /Unlimited: users with unlimited access to shared resources at the same time. /Remark: "text" add a description comment on the resource. Enclose the text with quotation marks. /Cache: Enable the offline customer cache with automatic re-integration in automatic. /Cache: manual enables offline customer cache with manual re-integration. /Cache: no reminds the customer that the offline cache is not suitable. /Delete: Stop sharing resources. Net help command displays the help of the specified net command. Note: To share a directory with a Path containing space characters, use quotation marks to enclose the drive and Path of the directory (for example, "C: \ Path Name "). When all the shared resources on the computer are displayed, the shared names, device names or paths related to the resources, and descriptive comments related to the resources are displayed. The output content is similar to the following: share name resource remark -------------------------------------------------- ADMIN $ C: \ WINNT Remote AdminC $ C: \ Default Share for Internal Useprint $ C: \ WINNT \ SYSTEM \ SPOOLIPC $ Remote IPCLASER LPT1 Spooled Laser printer will be saved when sharing is created on the server. When the Server service is stopped, all shares are disconnected, but the Server will be automatically reconnected the next time you start the Server service or restart the computer. When you browse a local computer from a remote computer, the shared resource name ending with "$" is not displayed. To show information about shared resources on a computer, enter the C: \ Data directory for network sharing to share the computer with the shared name DataShare and include comments. Enter: net share DataShare = c: \ Data/remark: "For department 123. "to stop the DataShare folder sharing created in the previous example, type: net share DataShare/delete to use the shared name List to share the C: \ Art Lst directory of the computer. Type: net share list = "c: \ art lst" format legend format meaning italic users must provide information bold users must be as accurate as the displayed element ellipsis (...) parameters that can be repeated multiple times in the command line are optional items between braces ([]) and separated by vertical bars (|. For example: {even | odd} the user must select only one option from the queue group Courier font code or program output ================ ========================================================== === test instance: \ 172.1668.191 share Name: D: \ config> net share app $ = d: \ configapp $ shared successfully. \ 172.1668.177 run the copy command: D: \> net use \ 172.1668.191 \ app $ "ffcs"/user: "administrator. D: \> copy \ 172.1668.191 \ app $ \ php. ini d: \ copy: one file has been copied. The volume in D: \> cd copy D: \ copy> dir drive D has no labels. The serial number of the volume is the C832-98B4 D: \ copy directory <DIR>. <DIR> .. 39,525 php. ini1 files 39,525 bytes 2 directories 815,849,472 available bytes D: \ copy>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.