Batch file to check if a certain file exists
<pre><code>d:
IF EXIST D:\JDK Folder\bin\awt.dll (echo youhavejava) ELSE (echo youdonthavejava)
pause
</code></pre>

<p>I wanted to make this program to check if a file exists on my computer or not and it will tell me the answer. I have tried to get this code to work, but no matter what I do it won't work. Can someone please tell me what the problem is? All it does is run and not output anything.</p>