Snippets

Ettar Powershell - CopyDarkEvil

Created by Ettar
1
2
3
4
5
6
7
$searched = Read-Host "Name des Liedes?"
$destPath = "Pfad in den die Dateien sollen"
$sourceFile = Get-ChildItem "Pfad zum Programm" | where {$_.Name -like "*$searched*"}
$sourceMP3 = Get-ChildItem $sourceFile.FullName | where{$_.Extension -eq ".mp3"}
$sourceJPG = Get-ChildItem $sourceFile.FullName | where{$_.Extension -eq ".JPG"}
Copy-Item -Path $sourceMP3.FullName -Destination $destPath'\'$sourceFile'.mp3'
Copy-Item -Path $sourceJPG.FullName -Destination $destPath'\'$sourceFile'.jpg'

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.