-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAncestors_Scan.cmd
45 lines (26 loc) · 1.05 KB
/
Ancestors_Scan.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM - - - - - - - - - - - - version 18august2021 - - -
REM
REM
REM ExifTool - https://exiftool.org/install.html
REM
REM Blat (64bit) - https://www.blat.net
REM
REM
REM - - - - - - - - - - - - - - - - - - - - - - - - - -
set exiftoollocation=C:\Windows
set blatlocation=C:\Program Files\Blat
set scanfolder=D:\ASSETS
set scanlogfolder=D:\Ancestors Scan
set scanlogfilename=Ancestors_Scan_Log.txt
set emailserver=mail.example.com
set emailto=recipient@example.com
set emailfrom=server_noreply@example.com
set emailsubject="Automation Notification: Ancestors Scan Log"
REM - - - - - - - - - - - - - - - - - - - - - - - - -
REM - - - - - - - - - - - - - - - - - - - - - - - - -
del "%scanlogfolder%\%scanlogfilename%" /Q
> "%scanlogfolder%\%scanlogfilename%" 2>&1 (
"%exiftoollocation%\exiftool.exe" -m -p "$directory/$filename" -r -if "$documentancestors and (()=$documentancestors =~ /, /g) > 100" "%scanfolder%"
)
"%blatlocation%\blat.exe" "%scanlogfolder%\%scanlogfilename%" -to %emailto% -f %emailfrom% -s %emailsubject% -server %emailserver%