6.2
This commit is contained in:
1 parent
528104fff0
commit
beb498d38b
60 files changed
+3184
-2129
No files matched your search
@@ -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."
|
||||
}
|
||||
Reference in new issue
Block a user