给分吧,这么类,给200吧.你的目的本来是快捷,其实我上面的就该OK了.
program xchgname;
uses sysutils;
var Rec:TSearchRec;
I:Integer;
procedure changename(Full:string);
Var EXT,Name:String;
P:Integer;
begin
P:=pos('.',Full);
Name:=Copy(Full,1,P-1);
Ext:=Copy(Full,P+1,Length(Full)-P);
renamefile(Full,Ext+'.'+Name);
end;
begin
I:=FindFirst('100.*',faAnyFile,Rec);
while I=0 do
begin
ChangeName(Rec.Name);
I:=findNext(Rec);
end;
FindClose(Rec);
end.