There is a way for verity if all the File Path are correct?
Thanks
script for verify the File Path?
-
antp
- Site Admin
- Posts: 9903
- Joined: 2002-05-30 10:13:07
- Location: Brussels
-
otreux
- Posts: 201
- Joined: 2008-10-22 16:55:46
-
soulsnake
- Posts: 756
- Joined: 2011-03-14 15:42:20
- Location: France
All the functions for scripting are described in AMC Help (F1).
Here the script to check and list movies whose file path does not exist :
Soulsnake.
Here the script to check and list movies whose file path does not exist :
Code: Select all
program CheckFilePath;
var
Path: string;
List: TStringList;
begin
if GetIteration = 0 then
begin
List := TStringList.Create;
end;
Path := GetField(fieldFilePath);
if not FileExists(Path) and not DirectoryExists(Path) then
begin
List.Add(' - ' + GetField(fieldFormattedTitle) + ' : ' + Path)
end;
if GetIteration = GetIterationCount-1 then
begin
ShowMemo('List of movies whose file path does not exist:' + #10 + List.Text);
List.Free;
end;
end.
Last edited by soulsnake on 2013-09-28 22:27:03, edited 1 time in total.