MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically.
seisyll replied to wkboarder348's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)You shouldn't need any quotes. Try this: Dim filespec, msg filespec = "E:\Program Files\Internet Explorer\iexplore.exe" Set fso = CreateObject("Scripting.FileSystemObject") If (fso.FileExists(filespec)) Then msg = filespec & " exists." Else msg = filespec & " doesn't exist." End If WScript.Echo(msg)