From 28ab8f9a71d21a8c45067548f347bc1412e4a03e Mon Sep 17 00:00:00 2001 From: "manuel.maier" Date: Wed, 19 Mar 2025 22:18:10 +0100 Subject: [PATCH] Dateien nach "/" hochladen --- install-pcvisit-remotehost.bat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 install-pcvisit-remotehost.bat diff --git a/install-pcvisit-remotehost.bat b/install-pcvisit-remotehost.bat new file mode 100644 index 0000000..dd28335 --- /dev/null +++ b/install-pcvisit-remotehost.bat @@ -0,0 +1,25 @@ +@echo off +setlocal + +:: URL der Datei +set URL="https://d1kh5e79chg49w.cloudfront.net/c54e98ef610b573b19d45a634780d925/pcvisit_Remote-Host_Setup.exe" + +:: Zielpfad für die heruntergeladene Datei +set SETUPFILE="%TEMP%\pcvisit_Remote-Host_Setup.exe" + +:: Datei herunterladen +powershell -Command "Start-BitsTransfer -Source %URL% -Destination %SETUPFILE%" + +:: Prüfen, ob der Download erfolgreich war +if not exist %SETUPFILE% ( + echo Fehler: Die Datei konnte nicht heruntergeladen werden. + exit /b 1 +) + +:: Installation starten +%SETUPFILE% /S /CompanyAccountId=F6684590965 /UseCompanyPreset + +:: Aufräumen (optional) +del %SETUPFILE% + +endlocal \ No newline at end of file