Batch file to copy files from one folder to another folder

前端 未结 9 1629
臣服心动
臣服心动 2020-11-29 15:07

I have a storage folder on a network in which all users will store their active data on a server. Now that server is going to be replaced by a new one due to place problem s

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 15:31

    To bypass the 'specify a file name or directory name on the target (F = file, D = directory)?' prompt with xcopy, you can do the following...

    echo f | xcopy /f /y srcfile destfile

    or for those of us just copying large substructures/folders:

    use /i which specifies destination must be a directory if copying more than one file

提交回复
热议问题