local fh = file.open(arg(1), "r") local Str, Dir, Par local Qu = esc(?+\"+, ?+\+) osd.show("Wait...", "INFINITE", "48", "Arial Cyr", "-1", "255 000 000") if(fh > 0) do for(not(file.eof(fh))) Str = file.readstring(fh) if(Str) do if(arg(0) == 3) do Dir = arg(2) ++ runfile.Subs\Sub_ParsePath(Str, 1) ++ arg(3) Par = "runfile.Subs\Sub_MoveFile(" ++ Qu ++ "|" ++ Qu ++ ", Dir)" file.allfiles(Str, Par) else Par = Str ++ "*.*" if(file.move(Par, arg(2), 1) != "1") do file.close(fh) quit endif endif file.delete(remove(Str, -1)) endif endfor else messagebox("ok error", "File not opened", "FILE plugin error") osd.hide quit endif file.close(fh) win.sendmessage(win.handle("c=TTOTAL_CMD"), 0x400+51, 540, 0) osd.show("Ready!", "1000", "48", "Arial Cyr", "-1", "000 255 000") osd.hide