我有批处理文件,但它在Windows 7中使用时出现语法错误

时间:2016-12-16 11:39:14

标签: file batch-file

@ echo off

move /y c:\program files (x86)\presst~1\Newsview\received\coreplus  \\edt_np\pti

@echo off

d:\sleep 30
d:\wire.bat

2 个答案:

答案 0 :(得分:1)

您需要“引用包含分隔符的参数”

move /y "c:\program files (x86)\presst~1\Newsview\received\coreplus"  \\edt_np\pti

答案 1 :(得分:0)

只是粗略地看: 好像你需要使用一些“为你的路径。一个空间引导程序认为下一个参数开始但你的参数不是c:\ program和files和(x86)等。而是它是一个字符串”c:\程序文件(x86)\ presst~1 \ Newsview \ received \ coreplus“