提供不同虚拟桌面启动应用的功能

This commit is contained in:
2026-02-13 23:23:22 +08:00
parent 392adc304c
commit f7df3ebeb3
2 changed files with 49 additions and 0 deletions

28
AutoStart.bat Normal file
View File

@@ -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

21
SilentStart.vbs Normal file
View File

@@ -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