Skip to content

Instantly share code, notes, and snippets.

@AARP41298
Last active July 9, 2025 18:14
Show Gist options
  • Save AARP41298/907c3668bebe53efe417b5f44cbce8af to your computer and use it in GitHub Desktop.
Save AARP41298/907c3668bebe53efe417b5f44cbce8af to your computer and use it in GitHub Desktop.
#Para acentos, abrir con vs code y guardar con UTF8 con BOM
#Crear acceso directo que apunte al archivo.
#C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "C:\location of the file\iniciar_servidores.ps1"
#Para iniciar cuando la PC inicie, poner el acceso directo en:
#C:\Users\username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
#also you can acces via Win + R `shell:startup`
$timeout = 15
Write-Host "El script se ejecutará en $timeout segundos. Presiona Ctrl+C para cancelar."
for ($i = $timeout; $i -gt 0; $i--) {
Write-Host "$i..." -NoNewline
Start-Sleep -Seconds 1
Write-Host "`r" -NoNewline
}
Write-Host "Iniciando servidores..."
Start-Process "C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe" -ArgumentList '--comment "haos" --startvm "{abcedfghijklm}"'
Start-Process "C:\l4d2\infinite l4d2.bat"
Start-Process "C:\Windows\py.exe" -ArgumentList '"C:\Todo\Bedrock Server\bedrock-server-1.21.92.1 24 jun 2025\bot.py"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment