mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-20 12:48:38 +01:00
Updated copy-photos-sorted.ps1
This commit is contained in:
parent
1a0daf2109
commit
e796bae7cb
@ -10,7 +10,7 @@
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos
|
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos
|
||||||
⏳ Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\...
|
⏳ Copying IMG_20240903_134445.jpg to C:\MyPhotos\2024\09 SEP\...
|
||||||
✅ Copied 1 photo (0 skipped) to 📂C:\MyPhotos in 41s.
|
✅ Copied 1 photo to 📂C:\MyPhotos (0 skipped) in 41s.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -88,7 +88,7 @@ try {
|
|||||||
}
|
}
|
||||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
[int]$copied = $files.Count - $skipped
|
[int]$copied = $files.Count - $skipped
|
||||||
"✅ Copied $copied photos ($skipped skipped) to 📂$targetDir in $($elapsed)s."
|
"✅ Copied $copied photos to 📂$targetDir ($skipped skipped) in $($elapsed)s."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user