Hello, I'm trying to create a simple VBS script, in this I need a Function that takes a file path and returns true if there is a file there, and false if there's nothing.
I'm using the following code
Function FileThere (FileName As String) As Boolean
FileThere = (Dir(FileName) > "")
End Function
I get the following Error
Expected ')'
800A03EE
Microsoft VBScript compilation error
Any idea what's wrong? I've tested it with just those three lines in the file and the error still occurs.