Hi VBS Forum,
This problem has been plaguing me for quite some time and I'd really like to get to the bottom of it. I really hope someone can help me.
The problem is, whenever I run the following code, I get a false-negative for the first conditional statement. Since I know the file I'm running the FileExists method against is right there on my hard drive and I have administrative rights to it, what could be the problem?
Thanks in advance for your time!
This problem has been plaguing me for quite some time and I'd really like to get to the bottom of it. I really hope someone can help me.
The problem is, whenever I run the following code, I get a false-negative for the first conditional statement. Since I know the file I'm running the FileExists method against is right there on my hard drive and I have administrative rights to it, what could be the problem?
Code:
Set objfso = CreateObject( "Scripting.FileSystemObject" )
If objfso.FileExists( strsfxcllogsrc ) Then
If reftpgetsccss.Test( strsfxcllog ) = True Then
make a subroutine call
Else
WScript.Echo "Error: Download failed!"
objfso = nothing
WScript.Quit
End If
Else
WScript.Echo "Error: Download failed!"
objfso = nothing
WScript.Quit
End If
Thanks in advance for your time!