There are several methods you can use to share folders and files with others on the network. The Create a Shared Folder Wizard guides you through the steps of setting up a basic shared folder. You can also use the command-line interface to share a folder or drive.

Share a folder or drive

To share a folder or a drive by using the Windows interface
  1. Open Computer Management.

  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  3. In the console tree, click System Tools, click Shared Folders, and then click Shares.

  4. On the Action menu, click New Share.

  5. Follow the steps in the Create a Shared Folder Wizard, and then click Finish.

To share a folder or a drive by using a command line
  1. To open an elevated Command Prompt window, click Start, point to All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.

  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.

  3. Type:

    net share <sharename=drive:path>

    For example, to share a folder named myshare located on drive C, in the path \Users\Myname, type:

    net share myshare=C:\Users\Myname

Value Description

Net share

Creates, deletes, or displays shared folders.

<sharename>

The network name of the shared folder.

<drive:path>

The absolute path of the shared folder.

Note

To view the complete syntax for this command, at the command prompt, type: net help share

Additional references