diff --git a/AutoStart.bat b/AutoStart.bat new file mode 100644 index 0000000..cbd2e78 --- /dev/null +++ b/AutoStart.bat @@ -0,0 +1,28 @@ +@echo off +REM Wait for system to settle +timeout /t 10 /nobreak + +REM 1. Figma +vdesk run --on 1 "C:\Users\MAO_D\scoop\apps\figma\current\Figma.exe" + +REM 2. Windows Terminal +vdesk run --on 2 wt + +REM 3. VS Code +vdesk run --on 3 "C:\Users\MAO_D\scoop\apps\vscode\current\Code.exe" + +REM 4. Chrome - Localhost +vdesk run --on 4 "C:\Users\MAO_D\scoop\apps\googlechrome\current\chrome.exe" -a "http://localhost:57202/" + +REM 5. Chrome - Gemini +vdesk run --on 5 "C:\Users\MAO_D\scoop\apps\googlechrome\current\chrome.exe" -a "https://gemini.google.com/app" + +REM 6. Chrome - Scoop and Git +vdesk run --on 6 "C:\Users\MAO_D\scoop\apps\googlechrome\current\chrome.exe" -a "https://scoop.sh/" +timeout /t 2 +vdesk run --on 6 "C:\Users\MAO_D\scoop\apps\googlechrome\current\chrome.exe" -a "https://git.furtherverse.com/mdy" + +REM 7. Telegram +vdesk run --on 7 "C:\Users\MAO_D\scoop\apps\telegram\current\Telegram.exe" + +exit \ No newline at end of file diff --git a/SilentStart.vbs b/SilentStart.vbs new file mode 100644 index 0000000..fc5f6e5 --- /dev/null +++ b/SilentStart.vbs @@ -0,0 +1,21 @@ +Set WshShell = CreateObject("WScript.Shell") +Set fso = CreateObject("Scripting.FileSystemObject") + +' 获取当前 .vbs 脚本的完整路径 +fullPath = WScript.ScriptFullName + +' 获取该脚本所在的文件夹路径 +currentDir = fso.GetParentFolderName(fullPath) + +' 拼接出同目录下的 AutoStart.bat 完整路径 +batPath = currentDir & "\AutoStart.bat" + +' 检查文件是否存在,防止路径错误导致无反应 +If fso.FileExists(batPath) Then + WshShell.Run chr(34) & batPath & chr(34), 0 +Else + MsgBox "找不到文件: " & batPath, 16, "路径错误" +End If + +Set WshShell = Nothing +Set fso = Nothing \ No newline at end of file