Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] how to rename input file

I have some input files in my local machine, after processing those files I need to rename the files. something like FILENAME.DONE or FILENAME.ERR
how this can be possible? any suggestions?
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

done by putting this code in tJava component
File file = new File(context.Directory+"\\"+ context.fileName);
File file2 = new File(context.Directory+"\\"+ context.fileName+".done");
file.renameTo(file2);

View solution in original post

1 Reply
Anonymous
Not applicable
Author

done by putting this code in tJava component
File file = new File(context.Directory+"\\"+ context.fileName);
File file2 = new File(context.Directory+"\\"+ context.fileName+".done");
file.renameTo(file2);