AutoIt3-根目錄文件夾檢測(cè)存在并復(fù)制

admin AutoIt3評(píng)論1,2231字?jǐn)?shù) 285閱讀模式
摘要

刪除X:\hotfix文件夾下所有補(bǔ)丁,并復(fù)制對(duì)應(yīng)路徑補(bǔ)丁至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  
文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7132.html
版權(quán)聲明:文章圖片資源來源于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2021年2月3日 11:05:32
  • 轉(zhuǎn)載請(qǐng)務(wù)必保留本文鏈接:http://www.strong-digital.cn/7132.html
匿名

發(fā)表評(píng)論

匿名網(wǎng)友 填寫信息

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