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
Necrowizard

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
torrentg

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
Thread Forum
Sharing a single batch file for all home group Computers..
Hello, Here is my question. I have several computers on a home group. All the computer have program X on them. I need to run a batch file to start the program with some arguments that need to be changed often. I would like to have the computers all run the same batch file from shared location to...
Network & Sharing
[Help] Batch File move every 15.000 files to another folders
Hi guys I'm new here, please help I have about 2 million email files that i want to convert into mbox files. but the tool i used only can convert every 15.000 files. so i need a batch file that can move this 2 million files into another folder (15.000 files each folder) and the folder name...
General Discussion
Protected Folders Batch File Backup
So I am trying to create a batch file that will copy certain folders from the My Documents and Program Files 86 folders. Of course these are protected. I can make a batch file and use robocopy to copy other files just fine. How can I set admin privileges? Or whatever it is I need to do to make it...
Backup and Restore
file sharing with homegroup
Hi all, I was wondering if there is a way to actually send files across my home network rather than sharing them using homegroup. I was thinking of using ftp but there must be a way to do this within windows. thanks for any help or suggestions.
Network & Sharing
File Sharing and Homegroup Sharing Problem
Hi, I have been going crazy trying to get my PC to share files with a couple of laptops. I am running Windows 7 64 Bit and the laptops are running Windows 7 64 bit and Windows XP. I have enabled file sharing but The Windows 7 Laptop keeps giving me an unknown error when trying to join a...
Network & Sharing
Cannot Access All Folders When Sharing In Homegroup
Hello, I have two PC's running Windows 7 x64 (setup for Home network) and I am trying to share all the contents of the HDD's. I can access and delete files in most of the folders (not just the Public folder) but I cannot access the sub-folders under the "User" folder, I keep getting Access...
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 00:49.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App