Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 使用cecopy时出现批处理错误_Batch File - Fatal编程技术网

Batch file 使用cecopy时出现批处理错误

Batch file 使用cecopy时出现批处理错误,batch-file,Batch File,如果在从命令行将这些文件复制到特定目录时遇到问题,请提供任何帮助 这是我的密码: :MK2046 cls echo MK2046 App/Plat copyBot initialized echo Make sure you have allowed pcConnection on unit echo Connect RS 485 cable, press enter once Sync is complete :: wait until unit is synced properly

如果在从命令行将这些文件复制到特定目录时遇到问题,请提供任何帮助

这是我的密码:

:MK2046
cls
echo MK2046 App/Plat copyBot initialized
echo Make sure you have allowed pcConnection on unit
echo Connect RS 485 cable, press enter once Sync is complete
    :: wait until unit is synced properly
pause
cls
cecopy /is C:\"Flash 2"\MK2046-xxxxxxxx\"Depot Test"\App\*.reg dev:\Application
cecopy /is C:\"Flash 2"\MK2046-xxxxxxxx\"Depot Test"\App\*.key dev:\Application
cecopy /is C:\"Flash 2"\MK2046-xxxxxxxx\"Depot Test"\App\radio.def dev:\Application
cecopy /is C:\"Flash 2"\MK2046-xxxxxxxx\"Depot Test"\Plat\*.reg dev:\Platform
cecopy /is C:\"Flash 2"\MK2046-xxxxxxxx\"Depot Test"\Plat\*.cpy dev:\Platform
pause
goto main
以下是错误文本:

Parameter processing error - Too many parameters:  dev:\Platform

Usage:  CeCopy  [options] <Source_FileSpec>  <Destination>

Options:

    /is                  Include same files
    /s                   Include subdirectories

Arguments:

    Source_FileSpec      File specification denoting the source of the copy.
    Destination          Where files should be copied to.

For the source, wild cards or directory names may be specifed, as may be single
files.  The destination can be either a directory or a file name, depending
on the type of source specified.

By default, an argument is assumed to live on a local filesystem.  To indicate
that either argument denotes a location on a device connected via ActiveSync,
prepend 'dev:' to that argument.   To articulate that a local filesystem is
referenced, prepend 'desk:' to the argument.
Exiting.
参数处理错误-参数太多:dev:\Platform
用法:CeCopy[选项]
选项:
/是否包含相同的文件
/s包括子目录
论据:
Source_FileSpec文件规范,指示副本的源。
文件应复制到的目标。
对于源,可以指定通配符或目录名,也可以指定单个通配符或目录名
文件夹。目标可以是目录或文件名,具体取决于
在指定的源类型上。
默认情况下,假定参数位于本地文件系统上。表示
任一参数表示通过ActiveSync连接的设备上的位置,
在该参数前面加上“dev:”。阐明本地文件系统是
引用,在参数前面加上“desk:”。
退出。

我认为你的报价有误。你可能想要这样的东西:

cecopy /is "C:\Flash 2\MK2046-xxxxxxxx\Depot Test\App\*.reg" dev:\Application

根据错误描述中的文本,PC端的格式使用单词“desk”代替驱动器号(C:):


我先删除CeCopy线中间的引号,然后像例子显示的那样把它放在开始和结束。我把它改为这个,它返回这个错误:<代码>没有足够的参数< /代码>我发现如果我使用<代码> DEV:“\我的计算机\应用程序”<代码> >错误代码:源模式与文件不匹配:C:\Flash 2 \MK2046XXXXXXXX“DestTest\PLAT\*CPY DEV:\我的副本失败可能这只是一个打印错误,但请确保在您的路径中间没有任何<代码>”<代码>标记。在你上面的评论中,你有一个介于
xxxxxxxx
De Test
之间。你是对的,我有一些引用,现在它说复制失败但没有错误,这可能是权限问题吗?
cecopy /is "desk:\Flash 2\MK2046-xxxxxxxx\Depot Test\App\*.reg" dev:\Application