I need to check whether the given file is exist or not with case sensitive, out.txt(all are small letters) file is present in location where i running the script.
Code:
Case1:
filename=out.txt
if exist %filename% (
echo file exist...
) else echo File doesn't exist...
Case2:
filename=OUT.TXT
if exist %filename% (
echo file exist...
) else echo File doesn't exist...
For both case it showing file exist... output. But i need to check with case sensitive. It should show "File doesn't exist" msg for OUT.TXT
Thanks in advance