How to share folder from command line in Windows
Sharing your folder will allow other users on the network to view, download and edit the content of the folder via the network. While this can be done using the GUI, it’s easier when using the command line, if you know how. This article will show you just that.
Assuming you have a folder in your
c: drive called
testdir, and you want to share it over the network with the name
mydirectory, you can do that by just using the following command at the command prompt.
net share mydirectory=c:testdir
Once you’re done with the sharing and want to disable it, just issue the following command at the command prompt.
net share /delete mydirectory