如何从Windows命令行创建共享文件夹? [英] How can I create a shared folder from the Windows command line?

查看:293
本文介绍了如何从Windows命令行创建共享文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,这是通过 net 命令完成的。

As far as I'm aware, this is done via the net command.

帮助部分不是很有帮助,因为它只显示次要选项,而不是如何使用这些。

However, the help section isn't very helpful, as it only shows me the secondary options and not how to use those.

假设我有一个文件夹 C :\Share_test

如何从命令行中共享?

推荐答案

C:\> net help share


要共享计算机的 C:\Data 目录 DataShare 并包含备注,类型:

To share a computer's C:\Data directory with the share name DataShare and include a remark, type:

net share DataShare = c:\数据/备注:对于部门123。

这篇关于如何从Windows命令行创建共享文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆