mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-02 20:19:19 +01:00
Updated copy-photos-sorted.ps1
This commit is contained in:
parent
1a0daf2109
commit
e796bae7cb
@ -10,7 +10,7 @@
|
||||
.EXAMPLE
|
||||
PS> ./copy-photos-sorted.ps1 D:\iPhone\DCIM C:\MyPhotos
|
||||
⏳ 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
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -88,7 +88,7 @@ try {
|
||||
}
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
[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
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user