Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Sharing folders with homegroup, using a batch file?


30 Oct 2009   #1

Windows 7 Professional
 
 
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 System SpecsSystem Spec
.

31 Oct 2009   #2

7600.20510 x86
 
 

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

net use /? at command prompt for help.
My System SpecsSystem Spec
Reply

 Sharing folders with homegroup, using a batch file?




Thread Tools



Similar help and support threads for2: Sharing folders with homegroup, using a batch file?
Thread Forum
Protected Folders Batch File Backup Backup and Restore
Is there a Script or batch file that can create folders by date range General Discussion
Solved a simple batch file for copy files and folders General Discussion
Sharing folders/drives only w/in homegroup not entire network? Network & Sharing
Sharing and restricting folders across a homegroup Network & Sharing
File Sharing and Homegroup Sharing Problem Network & Sharing
Cannot Access All Folders When Sharing In Homegroup Network & Sharing

Our Sites

Site Links

About Us

Find 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 03:21 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33