您好我正在尝试使用浴室工作将文件夹从网络驱动器复制到本地窗口D驱动器,但它没有复制文件
echo off
cls
echo Would you like to do a backup?
pause
copy "S:\2017\*" "D:\TEST_BACKUP_FOLDER"
pause
我已将我的网络驱动器映射为S驱动器,但我收到的信息低于消息。
Would you like to do a backup?
Press any key to continue . . .
S:\2017\*
The system cannot find the file specified.
0 file(s) copied.
Press any key to continue . . .
答案 0 :(得分:1)
我建议你改用 xcopy ,并通过添加' / s'来包含子目录。选项。你总是可以通过复制/?'来获得帮助。或者' xcopy /?'。
echo off
cls
echo Would you like to do a backup?
pause
xcopy "S:\2017\*" "D:\TEST_BACKUP_FOLDER\" /s
pause