查看本机所有连接
NET USE
使用账号密码连接共享路径并且映射到本地Z盘
net use z: \sdssdfcbshare /user:dd "QSMC+12345"
删除连接映射
NET USE Z: /DELETE
与共享路径文档交互cmd脚本:
保存后缀.bat
@ECHO off ::echo off关闭cmd提示 ,@连这句echo off都不提示
NET USE \sdssdfcbshare /delete ::断开连接
NET USE \sdssdfcbshare /user:dd "QSMC+12345" ::使用账号密码连接共享路径
COPY /Y \sdssdfcbshare*.* d:share ::/Y直接覆盖重复文件,不提示
MOVE /Y \sdssdfcbshare*.* d:share
@ECHO on ::打开cmd提示功能