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 |
-
Open Computer Management.
-
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
-
In the console tree, click System Tools, click Shared Folders, and then click Shares.
-
On the Action menu, click New Share.
-
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 |
-
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.
-
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
-
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 |
---|---|
|
Creates, deletes, or displays shared folders. |
|
The network name of the shared folder. |
|
The absolute path of the shared folder. |
Note | |
To view the complete syntax for this command, at the command
prompt, type: |