Dateien nach "/" hochladen
This commit is contained in:
25
install-pcvisit-remotehost.bat
Normal file
25
install-pcvisit-remotehost.bat
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user