The script you posted is the complete script ? because the line
"Does E:\Qlikview\Sales specify a file name " that you posted is not part of the script that I am seeing. This line is pointing to the 'Sales' folder under 'Qlikview' folder. So in this case either you do not have the folder 'Sales' or you do not have the folder 'Qlikview' and 'Sales'.