mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Updated copy-photos-sorted.ps1
This commit is contained in:
parent
1e227f3ba4
commit
1a956d2a5b
@ -76,6 +76,9 @@ try {
|
|||||||
} elseif ("$filename" -like "SAVE_*_*.jpg") {
|
} elseif ("$filename" -like "SAVE_*_*.jpg") {
|
||||||
$Array = $filename.split("_")
|
$Array = $filename.split("_")
|
||||||
CopyFile "$file" "$targetDir" $Array[1] "$filename"
|
CopyFile "$file" "$targetDir" $Array[1] "$filename"
|
||||||
|
} elseif ("$filename" -like "PXL_*_*.jpg") {
|
||||||
|
$Array = $filename.split("_")
|
||||||
|
CopyFile "$file" "$targetDir" $Array[1] "$filename"
|
||||||
} else {
|
} else {
|
||||||
Write-Host "⏳ Skipping $filename with unknown filename format..."
|
Write-Host "⏳ Skipping $filename with unknown filename format..."
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user