Created
December 10, 2023 18:12
-
-
Save PaulGoldschmidt/43d18c2d2078b77c506d818aed76ef35 to your computer and use it in GitHub Desktop.
A helper script for CREO 10 at the HAW Hamburg (Dep. TI/M+P) to autostart and confirm the creo config with the VPN-Setup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: By Paul Goldschmidt, 12-10-2023 | https://paul-goldschmidt.de/ | |
@echo off | |
start "" "C:\Program Files\eduVPN\Core\eduVPN.Client.exe" | |
:: Countdown timer for 5 seconds | |
for /l %%i in (5,-1,1) do ( | |
cls | |
echo Waiting for confirmation... (%%i seconds remaining) | |
timeout /t 1 /nobreak >nul | |
) | |
start "" "C:\creo_mzcad\Systemverzeichnis\the\the_konfig_laufwerke_creo.bat" | |
:: Simulate Enter key press | |
echo WScript.Sleep 1000 > %temp%\keypress.vbs | |
echo Set WshShell = WScript.CreateObject("WScript.Shell") >> %temp%\keypress.vbs | |
echo WshShell.SendKeys "{ENTER}" >> %temp%\keypress.vbs | |
cscript //nologo %temp%\keypress.vbs | |
start "" "C:\creo_mzcad\Systemverzeichnis\the\creo10\thedt10.bat" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment