deleting -t from files names in a directory

I have C:\corpus directory having 100 files.The name of files are A01-t,A02-t,A03-t .......A100-t now i want to delete -t from these files name in a single click, cow can it possible.
[190 byte] By [b_bprimal2007a] at [2007-11-27 4:03:27]
# 1

File[] f = (new File("C:\\corpus")).listFiles();

String fileName = ""; String newFileName = "";

for (int i = 0 ; i < f.length ; i++) {

fileName = f[i].getName();

newFileName = fileName.replace("-t", "");

f[i].renameTo(new File("C:\\corpus\\"+newFileName));

}

try something like that

calvino_inda at 2007-7-12 9:08:13 > top of Java-index,Java Essentials,Java Programming...