Problem with syntax in batch file
I'm having some trouble finding the error in the syntax for a batch file I wrote. Google was very little help, and I'm new to batch files, and scripting in general, so I apologize if this is wasting anyone's time.
The batch file is as follows:
echo This will install the Company Fonts.
echo if exists C:\Windows\Fonts\companyfonts*.ttf goto END
echo Fonts have been installed.
The problem I'm running into has to do with the "IF" statement. The batch file should be checking to see if the company fonts are already on the computer, and if they are, it should terminate immediately.
Instead it's calling the vbscript anyway, and if the fonts are already installed, the users get a "Copy/Replace" prompt for each font the vbscript is calling.
Please, how can I configure this batch file to check for the fonts, and terminate itself without calling the vbscript if it detects them?