How to give credentials in a batch script that copies files to a network location?

前端 未结 2 1352
后悔当初
后悔当初 2020-12-13 12:48

The environment is Windows Web Server 2008, and I\'m just trying to copy a folder full of files to a network location (a managed backup network folder). Here is my .bat file

2条回答
  •  情深已故
    2020-12-13 13:17

    You can also map the share to a local drive as follows:

    net use X: "\\servername\share" /user:morgan password
    

提交回复
热议问题