枫叶落
BAT添加磁盘映射
2016-6-1 Eagle

在服务器上创建好共享文件夹,在客户端机器上使用bat脚本添加磁盘映射并打开磁盘

脚本如下:

@echo off
net use * /del /y
net use G: \\172.26.11.1\FTPHome "2016" /u:"2016" /persistent:yes
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##172.26.11.1#FTPHome /v _LabelFromReg /d "文件共享" /f 
start G:
exit

blob.png

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容