将robocopy作为服务启动

时间:2017-05-25 16:31:48

标签: windows batch-file cm

我无法弄清楚我做错了什么,因为命令在命令行中运行完美,但文件运行不正常。我也尝试过多个来源和目的地,所以我认为这是问题,但我想现在不是。有谁能够帮我 ?我输了。

::
:: Robocopy Job C:\Users\sean\Documents\startup.rcj
::
:: Created by sean on Thursday, May 25, 2017 at 7:56:19 AM
::

::
:: Source Directory :
::
    /SD:F:\samplesh :: Source Directory.

::
:: Destination Directory :
::
    /DD:D:\samplesh :: Destination Directory.


::
:: Include These Files :
::
    /IF     :: Include Files matching these names
::      *.* :: Include all names (currently - Command Line may override)

::
:: Exclude These Directories :
::
    /XD     :: eXclude Directories matching these names
::          :: eXclude no names (currently - Command Line may override)

::
:: Exclude These Files :
::
    /XF     :: eXclude Files matching these names
::          :: eXclude no names (currently - Command Line may override)
::
:: Copy options :
::
    /DCOPY:D    :: what to COPY for directories (default is /DCOPY:DA).
    /COPY:DT    :: what to COPY for files (default is /COPY:DAT).
::
:: Retry Options :
::
    /R:10   :: number of Retries on failed copies: default 1 million.
    /W:5        :: Wait time between retries: default is 30 seconds.
::
:: Logging Options :
::

是代码...其他服务添加得很好但是当我尝试启动它时我得到错误1053?

0 个答案:

没有答案