Sharing folders with homegroup, using a batch file?


  1. Posts : 9
    Windows 7 Professional
       #1

    Sharing folders with homegroup, using a batch file?


    Hello,

    Due to some drives being portable, windows unshares them all the time on reboot, so I'm wondering if there is a command line option (batch command) to share folders with a homegroup.

    I already did some checking, and found that when you share a folder, it starts the process "C:\Windows\system32\svchost.exe -k netsvcs" which writes to the register in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares"

    I tried to export the keys, unshare the folder manually, and when re-setting the keys, but that did not work...

    Anyone has an idea of how I can do this?

    Thanks
      My Computer


  2. Posts : 5,747
    7600.20510 x86
       #2

    No ideas, but you can use a batch file containing net use command for classic mapping.

    net use /? at command prompt for help.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:51.
Find Us