{
int count = 0;
String template = Main.getString("wait_convert");
for (File file : fileArray)
{
if (waitDialog_convert.wasCancelled())
break;
String path = file.getPath();
String newFile = data.m_targetFolder + path.substring(data.m_srcFolder.length()+1, path.length());
newFile = newFile.substring(0, newFile.length() - JPathHelper.getFileExtension(newFile).length());
newFile += data.getTargetExtension();