Last active
April 2, 2018 05:26
-
-
Save ChrisHammond/6fbd866fe8c2f3dbac1733a56c08a3f9 to your computer and use it in GitHub Desktop.
This file is one I put together for working on compiling multiple GoPro folders/files into one collection for creating a timelapse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This file is one I put together for working on compiling multiple GoPro folders/files into one collection for creating a timelapse | |
# Copy all files from the current directory/subfolders into the root of the current directory | |
get-Childitem -recurse -filter *.jpg | Move-Item | |
#Rename all the files starting at 1 (can't get this to work properly with date sort) | |
$i = 1 | |
>> Get-ChildItem *.jpg | %{Rename-Item $_ -NewName ('G0{0:D6}.jpg' -f $i++)} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment