args Path local Report = miscplugin.tempfilename() local Str = "/c dir " ++ Path ++ " /a:d /b > " ++ Report local ExitCode = file.runwait(0, "cmd", Str, "", "hide") if(not file.size(Report)) quit("") flag clear 2 local Hand = file.open(Report, "r") local Temp if(Hand > 0 && not ExitCode) do for(not(file.eof(Hand))) Str = file.readstring(Hand) if(Str) do Str = file.nametype(file.getshortpath(Path ++ "\" ++ Str)) if(stricoll(Temp, Str) == -1) Temp = Str endif endfor else messagebox("ok error", "File not opened", "FILE plugin error") quit all endif file.close(Hand) quit(Path ++ "\" ++ Temp)