Ensure '<CR><LF>' does not appear in a extracted filename
Posted: Wed Oct 22, 2014 11:08 pm
Hello
I have a situation where I want to identify the file path and name of a TXT file in C:\Temp. Let's say the file is called 'test_file.txt' I have used the 'Search For File' and then the option of 'Save the File List to Variable', using the variable name file_name.
When I later ask RoboTask to run {file_name}, the process fails, with the log saying 'Cannot open file "C:\Temp\test_file<CR><LF>.TXT". The system cannot find the file specified'.
In short, somehow '<CR><LF>' is being added and I'm not sure why.
How can I avoid this '<CR><LF>' problem?
Regards
I have a situation where I want to identify the file path and name of a TXT file in C:\Temp. Let's say the file is called 'test_file.txt' I have used the 'Search For File' and then the option of 'Save the File List to Variable', using the variable name file_name.
When I later ask RoboTask to run {file_name}, the process fails, with the log saying 'Cannot open file "C:\Temp\test_file<CR><LF>.TXT". The system cannot find the file specified'.
In short, somehow '<CR><LF>' is being added and I'm not sure why.
How can I avoid this '<CR><LF>' problem?
Regards