一、先在服务器本地创建一个txt文本填入以下内容 @echo off net use m: \\Server\sharefile "这里写密码" /user:"这里写用户名" /persistent:no 二、将创建好的txt文本修改为bat文件 三、启动SAP前,将bat文件先启动