I want to check if a file in a directory exists.
I my case it does exist.
echo "is file";
Forward slashes will also work on Windows. You can use forward slashes so you do not need to escape them:
echo "file exists";