且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

帮助替换远程计算机上的文件

更新时间:2022-12-23 08:01:14

\ Progra〜2 \ Hewlett-Packard \ HPCA \ Agent \ Lib \ SYSTEM \ RADIA \ SOFTSRVC \ ASERVICE.EDM" File.Copy(" ,FileToCopy)
\Progra~2\Hewlett-Packard\HPCA\Agent\Lib\SYSTEM\RADIA\SOFTSRVC\ASERVICE.EDM" File.Copy("C:\Temp\ASERVICE.EDM", FileToCopy)


您需要在参数列表中添加true,该方法的另一个版本需要第三个参数来说明是否要覆盖文件.
You need to add , true to the parameter list, the other version of that method taking a third param to say if you want to overwrite the file.