预定蝙蝠的净使用量

时间:2019-03-21 15:57:54

标签: batch-file scheduled-tasks

我在Windows Server 2008 R2中安排了这个蝙蝠文件:

net use \\ip\share\employees\ /user:domain\user password
robocopy C:\Zucchetti\Timbrature\sicurezza\ \\ip\share\employees\ Timbrature_Giornaliere_5min.csv /R:0 /W:0 /v > C:\Zucchetti\Timbrature\sicurezza\logcopia.txt
del "Timbrature_Giornaliere_5min.csv"

如果我手动运行蝙蝠,它将运行良好。 如果我运行Windows Server 2008任务计划程序安排的bat,无论用户是否登录,我都会在日志中收到以下错误:

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

  Started : Thu Mar 21 16:52:00 2019

2019/03/21 16:52:00 ERROR 1326 (0x0000052E) Getting File System Type of Destination \\ip\share\employees\
Logon failure: unknown user name or bad password.

   Source : C:\Zucchetti\Timbrature\sicurezza\
     Dest - \\ip\share\employees\

    Files : Timbrature_Giornaliere_5min.csv

  Options : /V /COPY:DAT /R:0 /W:0 

------------------------------------------------------------------------------

2019/03/21 16:52:00 ERROR 1326 (0x0000052E) Accessing Destination Directory \\ip\share\employees\
Logon failure: unknown user name or bad password.

我如何使其在预定的bat文件中工作?

0 个答案:

没有答案