Jak pobrać plik z internetu i go uruchomić?
Może tak:
Skopiuj do schowka:
1
2
3
4
5
6
7
| $u="https://urbanowski.info/pub/PCM_7_8_128_147_Fa_z_komentarzem_20240325.exe"
$f=$u -replace '^.*/(.*/.*)$','$1'
$s="$($env:TEMP)\$f"
$ProgressPreference='SilentlyContinue'
[Net.ServicePointManager]::SecurityProtocol='Tls12'
iwr $u -OutFile (New-Item -Path $s -Force)
Start $s
|
To samo w jednym wierszu:
Skopiuj do schowka:
1
| $u="$u="https://urbanowski.info/pub/PCM_7_8_128_147_Fa_z_komentarzem_20240325.exe";$f=$u -replace '^.*/(.*/.*)$','$1';$s="$($env:TEMP)\$f";$ProgressPreference='SilentlyContinue';[Net.ServicePointManager]::SecurityProtocol='Tls12';iwr $u -OutFile (New-Item -Path $s -Force);Start $s
|
Włącz okno PowerShell i:
- ⌘ Win + x
- i
- Ctrl + v
- Enter
- (…) i gotowe