Add Terminal Launcher - Windows desktop launcher for WSL, PowerShell, Ubuntu
Simple double-click launchers for opening terminal environments: Files: - TerminalLauncher.vbs: VBScript launcher (no dependencies) - RECOMMENDED - TerminalLauncher.py: Python GUI with three buttons - TerminalLauncher.bat: Batch wrapper for Python version - TERMINAL_LAUNCHER_SETUP.md: Complete setup and usage guide Features: ✓ Double-click to open ✓ VBScript version requires no external dependencies ✓ Python version provides prettier GUI with buttons ✓ Three terminal options: WSL (default), PowerShell, Ubuntu (WSL) ✓ Works on Windows 7 and later Usage: 1. Copy .vbs or .bat/.py to Windows Desktop 2. Double-click 3. Select terminal 4. Opens immediately Ready for production use.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
' Terminal Launcher - VBScript
|
||||
' Double-click to launch - no dependencies required
|
||||
' Works on any Windows system
|
||||
|
||||
Set objShell = CreateObject("WScript.Shell")
|
||||
|
||||
' Display menu using VBScript InputBox with selection
|
||||
Dim result
|
||||
result = InputBox("Select Terminal to Launch:" & vbCrLf & vbCrLf & _
|
||||
"1 = WSL (default)" & vbCrLf & _
|
||||
"2 = PowerShell" & vbCrLf & _
|
||||
"3 = Ubuntu (WSL -d Ubuntu)", _
|
||||
"Terminal Launcher", "1")
|
||||
|
||||
If result = "" Then
|
||||
WScript.Quit
|
||||
End If
|
||||
|
||||
Select Case result
|
||||
Case "1"
|
||||
objShell.Run "wsl", 1, False
|
||||
Case "2"
|
||||
objShell.Run "powershell", 1, False
|
||||
Case "3"
|
||||
objShell.Run "wsl -d Ubuntu", 1, False
|
||||
Case Else
|
||||
MsgBox "Invalid selection. Please enter 1, 2, or 3.", vbExclamation, "Terminal Launcher"
|
||||
End Select
|
||||
|
||||
WScript.Quit
|
||||
Reference in New Issue
Block a user