This commit is contained in:
Vaica committed 2026-06-02 00:23:04 +08:00
1 parent 528104fff0
commit beb498d38b
60 files changed
+3184 -2129

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
# Get Startup folder path
$startup = [Environment]::GetFolderPath('Startup')
$batPath = "E:\GitHub\blog\write\start-silent.bat"
$vbsPath = Join-Path $startup "WriteBot.vbs"
# Create VBS wrapper for silent execution (no cmd window)
$vbs = @"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run Chr(34) & "$batPath" & Chr(34), 0, False
Set WshShell = Nothing
"@
$vbs | Out-File -FilePath $vbsPath -Encoding ASCII
# Verify
if (Test-Path $vbsPath) {
Write-Host "WriteBot startup script installed to: $vbsPath"
Write-Host "It will start silently on Windows login."
} else {
Write-Host "Failed to install startup script."
}