我的批处理脚本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)
日志:
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)?
batch-file ×1