在服务器上创建好共享文件夹,在客户端机器上使用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
