小编Tes*_*ser的帖子

XCOPY仍然要求(F =文件,D =目录)确认

我的批处理脚本xcopy仍然要求F = file, D = directory确认,即使我已/F在脚本中添加,日志显示如下.请帮助我们如何避免要求确认.

脚本:

net use p: /delete  
net use p: "\\200clan\F_Drive" /USER:adm /PERSISTENT:NO-1111
set source=%1
set target=p:/%2

echo %source% %target%

xcopy /S /I /Q /Y /F "%source%" "%target%"
Run Code Online (Sandbox Code Playgroud)

日志:

C:\test\foldera>xcopy /S /I /Q /Y /F "C:/test/folder1/folder2/logs/154/compareReport_177.html" "p:/Services/WSDLCompare/177_20151116/compareReport_177.html"
Does P:\Services\WSDLCompare\177_20151116\UIReport_177.html specify a file name
or directory name on the target
(F = file, D = directory)? 
Run Code Online (Sandbox Code Playgroud)

batch-file

28
推荐指数
4
解决办法
5万
查看次数

标签 统计

batch-file ×1