diff --git a/source/net/sourceforge/filebot/cli/CmdlineOperations.java b/source/net/sourceforge/filebot/cli/CmdlineOperations.java index 528a14ea..cbeb3255 100644 --- a/source/net/sourceforge/filebot/cli/CmdlineOperations.java +++ b/source/net/sourceforge/filebot/cli/CmdlineOperations.java @@ -86,7 +86,7 @@ public class CmdlineOperations implements CmdlineInterface { public List rename(Collection files, String action, String conflict, String output, String formatExpression, String db, String query, String sortOrder, String filterExpression, String lang, boolean strict) throws Exception { ExpressionFormat format = (formatExpression != null) ? new ExpressionFormat(formatExpression) : null; ExpressionFilter filter = (filterExpression != null) ? new ExpressionFilter(filterExpression) : null; - File outputDir = (output != null && output.length() > 0) ? new File(output) : null; + File outputDir = (output != null && output.length() > 0) ? new File(output).getAbsoluteFile() : null; Locale locale = getLanguage(lang).toLocale(); RenameAction renameAction = StandardRenameAction.forName(action); ConflictAction conflictAction = ConflictAction.forName(conflict);