中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 12:39
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » How can I disable all shared folders on this machine?
Printable Version  982 / 2
Floor1 nghr Posted 2010-03-29 09:48
初级用户 Posts 34 Credits 88
Please advise me, experts, how to disable all shared folders on this machine.
My idea is like this:
First automatically list all shared folders on this machine,
then make a batch file
that can automatically disable all shared folders on this machine.
If needed later, use a batch file again to re-enable the folders that were previously shared.

I've been working on it for several days and still haven't made it perfect.
Could one of the experts give me some pointers!
Thanks !
Floor2 HAT Posted 2010-03-29 22:28
版主 Posts 5,017 Credits 9,023
First post the incomplete thing you've written so we can take a look.
Floor3 ZJHJ Posted 2010-03-31 11:32
高级用户 Posts 374 Credits 609
You can use 'registry snapshot comparison' Regshot.exe to first obtain the registry information. Without closing Regshot.exe, manually set the partition you want to share (you need to turn off the firewall). It can be set to full access mode (copying, writing, deleting, etc. allowed) or copy-only mode. Then get the second registry snapshot; it will automatically compare the results and save them as 设置共享.reg. Then compare in reverse against the registry information obtained earlier, and save that as 取消共享.reg.
Each time you import a different registry file, you can achieve your goal.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023