Skip to content

Instantly share code, notes, and snippets.

@ChrisHammond
Last active April 2, 2018 05:26
Show Gist options
  • Save ChrisHammond/6fbd866fe8c2f3dbac1733a56c08a3f9 to your computer and use it in GitHub Desktop.
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 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