Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to share a folder in command line?  (Read 2454 times)

0 Members and 1 Guest are viewing this topic.

Osman

  • Guest
How to share a folder in command line?
« on: December 06, 2007, 06:45:22 AM »
Hello,

How can I share a folder in Documents And Settings with full permission via XP command line? 
Why do I need this? Because, I will have a batch file to install a program, which must be under Documents and Settings directory.

C:\NET SHARE myfolder=C:\myfolder           <-  This works.

But when I try to share a folder in Documents And Settings directory, the folder doesn't have writing permission but reading. I can't write in it.

My command is :
C:\NET SHARE myfolder=C:\Docume~1\myfolder    (Documents And Setting\myfolder)

Or, is there a way to make a reg file to share a folder with full permission?

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\lanmanserver\Shares]

Thank you,

Osman

TheManFrom



    Rookie

    Re: How to share a folder in command line?
    « Reply #1 on: December 06, 2007, 07:03:28 AM »
    Try using the runas command to run this command as an administrator