如何共享文件和文件夹批 [英] How to share files and folders with batch
问题描述
我希望能够分享通过批处理文件我的网络上的文件夹,但我不知道如何做到这一点。 净共享
想到的,但我似乎无法得到它的工作。我需要大家我的网络上,以便能够在网络驱动器映射到这个特定份额,因为它有安装包。我不希望有去了很多的信息输入到把工作做好,我也不希望有做手工。是否有这样做的方法吗?也感谢你提前给任何人,可以帮助。
刚刚送走我的头顶我这个报废在一起,但不可能得到它的工作。
关闭@echo
CLS
网购玛:\\\\ 192.168.1.103 \\安装/ UNLIMITED
出口
在混合网购和净使用
在服务器端则需要
份额净值=共享名C:\\路径\\为\\共享/ UNLIMITED
在客户端,你将不得不使用
网络使用L:\\\\ 192.168.1.103 \\共享名
I want to be able to share a folder on my network via batch file but I don't know how to do this. Net Share
comes to mind but i can't seem to get it to work. I need everyone to on my network to be able to map a network drive to this particular share as it has installation packages. I don't want to have to go and type in alot of information to get the job done, neither do I want to have to do it manually. Is there any way of doing this? Also thank you in advance to anyone that can help.
Just off the top of my head i scrapped this together but couldnt get it to work.
@echo off
cls
net share M:\\192.168.1.103\Installations /UNLIMITED
exit
you mixed "net share" and "net use":
On the "Server side" you will need
net share sharename="c:\path\to\share" /UNLIMITED
on the "client side" you will have to use
net use m: \\192.168.1.103\sharename
这篇关于如何共享文件和文件夹批的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!