Z zhihuali Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-20 #2 var FileName : String; begin ExtractFileExt(FileName) //文件扩展名 end;
B beta Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-20 #5 注意:用ExtractFileExt(FileName)取出来的扩展名是带点的:'.txt'
崔 崔占东 Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-20 #7 var FileName : String; begin ExtractFileExt(FileName) //.exe Delete(FileName,1,1) //exe end;
S shangshang Unregistered / Unconfirmed GUEST, unregistred user! 2002-03-20 #8 塞!用copy把‘.’去掉不就行了? [!]