AutoIt3-根目录文件夹检测存在并复制

admin AutoIt3评论1,0881字数 285阅读模式
摘要

删除X:\hotfix文件夹下所有补丁,并复制对应路径补丁至hotfix文件夹下。

源代码

  1. FileDelete("D:\Program Files\360hotfix\hotfix\*.exe")  
  2. Dim $i, $Drive  
  3. For $i = 67 To 90  
  4. $Drive = Chr($i)  
  5. If FileExists($Drive & ":\" & "hotfix" & "\" & "*.exe") Then 
  6.    FileCopy($Drive & ":\" & "hotfix"& "\" & "*.exe","D:\Program Files\360hotfix\hotfix")  
  7. ExitLoop  
  8. EndIf  
  9. Next  

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2021年2月3日 11:05:32
  • 转载请务必保留本文链接:https://www.58pxe.com/7132.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: