-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# DateFix | ||
Rename inconsistently named photo and videos to "yyyy-mm-dd hh mm ss.ext" format and set file timestamps to match. | ||
**Standardise Photo and Video filenames and timestamps.** | ||
|
||
DateFix.ps1 accepts a folder from the user then works through the files (optionally recursing) to name them as consistently as possible using the yyyyMMdd_HHmmss.ext format. | ||
|
||
The scripts first tries to use the embedded Date Taken EXIF Date, if this is not available the file's current filename is used. | ||
|
||
## Usage: | ||
|
||
1. Create a backup of the target folder | ||
1. **Create a backup of the target folder** | ||
2. Open PowerShell | ||
3. Run | ||
|
||
|
||
/path/to/DateFix.ps1 | ||
4. Select the target folder | ||
5. Answer if you want to process sub-folders | ||
DateFix.ps1 [[-Path] <String>] [[-Recurse] <Boolean>] [-Verbose] | ||
4. If -Path was not provided, then select the target folder | ||
5. If -Recurse was not provided, then answer if you want to process sub-folders | ||
1. Y - Process Sub Folders, | ||
2. N - Process selected folder only, | ||
3. C - Cancel, make no changes. | ||
6. Check the results are as expected | ||
5. Delete the backup of the target folder | ||
|
||
### Options | ||
|
||
You can also run | ||
|
||
|
||
/path/to/DateFix.ps1 -verbose | ||
to see details of what is happening. | ||
* **-Path** The root folder to be processed, e.g. C:\Users\Username\Pictures\ | ||
* **-Recurse** Whether or not to recurse through sub-directories of the root folder. | ||
* **-Verbose** Enables verbose output. |