Sharing a folder from the command line?

  • Thread starter Thread starter Ron Hardin
  • Start date Start date
Ron said:
Is there a command-line way to set a folder as shared?
XP Home.

Hi Ron Hardin,

Type the following from the command prompt:

net share /?

for more information on how to share a folder or file.
 
WTC said:
Hi Ron Hardin,

Type the following from the command prompt:

net share /?

for more information on how to share a folder or file.

Thanks. That works

$ net share temp=C:/cygwin/home/user/tempdir

sets it shared and

$ net share temp /delete

unshares it again. (running from cygwin /bin/sh rather than command window)
 
Ron said:
Thanks. That works

$ net share temp=C:/cygwin/home/user/tempdir

sets it shared and

$ net share temp /delete

unshares it again. (running from cygwin /bin/sh rather than command
window)

You're welcome.
 
Back
Top