From 66303429e3d1f50c28d94792c1eafad12df7f874 Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 21 Jan 2025 14:44:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=8C=E5=96=84windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 下载.bat => 下载hilog.bat | 0 下载hilog.vbs | 28 ---------------------------- 2 files changed, 28 deletions(-) rename 下载.bat => 下载hilog.bat (100%) delete mode 100644 下载hilog.vbs diff --git a/下载.bat b/下载hilog.bat similarity index 100% rename from 下载.bat rename to 下载hilog.bat diff --git a/下载hilog.vbs b/下载hilog.vbs deleted file mode 100644 index 1b4c1ce..0000000 --- a/下载hilog.vbs +++ /dev/null @@ -1,28 +0,0 @@ -Dim toolchainPath, downloadPath, timestamp, objShell, objFSO, cmd - -toolchainPath = ".\window" -downloadPath = "..\logs" - -' 创建 Shell 和文件系统对象 -Set objShell = CreateObject("WScript.Shell") -Set objFSO = CreateObject("Scripting.FileSystemObject") - -timestamp = Year(Now) & Right("0" & Month(Now), 2) & Right("0" & Day(Now), 2) & "_" & _ - Right("0" & Hour(Now), 2) & Right("0" & Minute(Now), 2) & Right("0" & Second(Now), 2) - -If Not objFSO.FolderExists(toolchainPath) Then - WScript.Echo "Error: Toolchain path does not exist: " & toolchainPath - WScript.Quit -End If - -On Error Resume Next -objShell.Run "cmd.exe /c " -If Err.Number <> 0 Then - WScript.Echo "Error executing command: " & Err.Description - On Error GoTo 0 - WScript.Quit -End If -On Error GoTo 0 - -Set objShell = Nothing -Set objFSO = Nothing