Ne Menge hinzugefügt.

This commit is contained in:
2023-01-04 19:30:40 +01:00
parent e0c029a6b1
commit a33ae71ee8
7 changed files with 1428 additions and 15 deletions

View File

@@ -7,16 +7,14 @@ function edit {
function space {
Get-CimInstance -ClassName Win32_LogicalDisk | Select-Object -Property DeviceID,@{'Name' = 'FreeSpace (GB)'; Expression= { [int]($_.FreeSpace / 1GB) }}
}
# Powershell als Admin neu starten
function elevate {
Start-Process powershell -Verb runAs -ArgumentList $arguments
}
# Speichert das Youtube Video als mp3 im aktuellen Ordner
function ymp3 {
yt-dlp --extract-audio --audio-format mp3 --format "bestaudio"
yt-dlp --extract-audio --audio-format mp3 --format "bestaudio" -ffmpeg-location "C:\Program Files\ffmpeg\ffmpeg.exe"
}
# Update
function update {
Start-Process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Verb RunAs -ArgumentList "-command allupdates | Out-Host" -Wait -WindowStyle Normal
}
# Startet das install Script
Set-Alias -name install -value "~\.winconfig\install.ps1"