Please accept this script in context with my question:
If objFSO.FileExists("C:\Windows\Fonts\" & objFile.Name) Then Wscript.Echo "Font already installed: " & objFile.Name
I want the VBS script to terminate / exit / terminate if the X file already exists. Currently, instead, a window appears with the message "Font Already Installed", as expected.
If I delete Echo , I get an empty field, where I still need to click OK.
I want the script to just end automatically if X already exists with 0 user input.
Is it possible? I have wscript.quit and wscript.exit but just getting errors.
The full script can be found here:
http://www.cloudtec.ch/blog/tech/install-font-command-line-script-windows-7.html
So, in context, I want to install XYZ fonts. If they are already installed, I want the script to just exit without having to click OK. The intention is to deploy fonts over the network.
source share