1

我想在凌晨 3 点目录中存档。

我写批处理,效果很好:

7za a -t7z C:/BackUp/wwwroot/EBC/ebc_%date:~10,4%%date:~4,2%%date:~7,2%.7z C:/inetpub/wwwroot/EBC/ -r

当我从这个调度程序中执行时不起作用。我有 Windows Server 2008。我添加操作 - 选择程序 - 7za.exe 并添加可选参数

a -t7z C:/BackUp/wwwroot/EBC/ebc_%date:~10,4%%date:~4,2%%date:~7,2%.7z C:/inetpub/wwwroot/EBC/ -r

但该任务返回代码 2

我做错了什么??

问候

4

1 回答 1

1

I find a solution.

I create a batch:

C:\BackUp\wwwroot\7za.exe a -t7z C:\BackUp\wwwroot\EBC\ebc_%date:~10,4%%date:~4,2%%date:~7,2%.7z C:\inetpub\wwwroot\EBC*.* -r

And i run a batch and it's works fine.

I don't know why doesn't works my first solutions but now other solution works fine.

Regards

于 2011-01-02T15:18:37.253 回答