在 Windows 中通过 cmd 将文档文件夹设置为网络公用文件夹

发布于 2024-09-25 16:15:21 字数 233 浏览 0 评论 0原文

我正在尝试创建一个批处理文件来设置 Windows 中的用户文档文件夹,以便可以像默认情况下的公共文件夹一样从网络访问它,几乎可以与所有人共享。

但我无法弄清楚它的语法。到目前为止,尝试弄乱 cacls 但没有任何运气。

我正在 Windows Vista 和 Windows 7 上测试它。

I am trying to create a batch file for setting the user documents folder in Windows so that it is accessible from the network like the public folder is by default, pretty much making it shared with everybody.

I can't figure out the syntax for it, though. So far tried messing with cacls but without any luck.

I am testing it on Windows Vista and Windows 7.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往日情怀 2024-10-02 16:15:21
net share "My files=%USERPROFILE%\Documents"
net share "My files=%USERPROFILE%\Documents"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文