local NewLine = esc(?+\r\n+, ?+\+) local Path = arg(1) local Config = "D:\Winnt\wincmd.ini" local Settings = "d:\Utils\PowerPro\scripts\ini\WDXdetect.ini" local hwnd = win.handle("c=TTOTAL_CMD") local Temp = ini.get(Config, "CustomFields", "Titles") Temp = replacechars(Temp, "|", NewLine) v = vec.createfromlines(Temp) local Plugins = vec.length(v) local Str, i, j flag clear 1 if(file.validpath(Path ++ "descript.ion") == 1) do local Hand = file.open(Path ++ "descript.ion", "r") if(Hand > 1) do for(not(file.eof(Hand))) Str = file.readstring(Hand) if(index(Str, ":") == "1") do file.close(Hand) flag set 1 break endif endfor if(pproflag(1)) do for(i = 0; i < Plugins; i = i + 1) if(index(Str, v[i]) != 0) do Temp = 271 + i win.postmessage(hwnd, 0x400+51, Temp, 0) vec.destroy(v) quit endif endfor endif else messagebox("ok error", "File not opened", "FILE plugin error") quit endif endif local Depth = runfile.Subs\Sub_ParsePath(Path, "") Path = remove(Path, -1) for(j = 1; j < Depth; j = j + 1) if(ini.check_exists(Settings, "Dirs", Path) == 3) do Str = ini.get(Settings, "Dirs", Path) for(i = 0; i < Plugins; i = i + 1) if(index(Str, v[i]) != 0) do Temp = 271 + i win.postmessage(hwnd, 0x400+51, Temp, 0) vec.destroy(v) quit endif endfor endif Str = file.folder(remove(Path, -1)) Path = Str endfor vec.destroy(v)