Copy files to network computers on windows command line

前端 未结 3 1834
北恋
北恋 2021-02-01 21:52

I am trying to create a script on Windows which when run on an admin PC:

  1. Copies a folder from the admin PC into a group of network PCs by specifying the ip address
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 21:58

    Below command will work in command prompt:

    copy c:\folder\file.ext \\dest-machine\destfolder /Z /Y
    

    To Copy all files:

    copy c:\folder\*.* \\dest-machine\destfolder /Z /Y
    

提交回复
热议问题