Re: filtype() Problems



Are you not getting anything in return for the files that do not
produce a type?

>>From the manual:
"Returns FALSE if an error occurs. filetype() will also produce an
E_NOTICE message if the stat call fails or if the file type is
unknown."

Set your error reporting for the script to report all errors to try an
pinpoint what is happening. It is hard to tell not seeing the rest of
the script and your filesystem.

.



Relevant Pages

  • cdo email "result" in vbs
    ... Is it possible to check that an email has been sent in vbs? ... The script I've written will be run automatically, on a regular basis, and ... so I need to include some sort of error reporting ... Prev by Date: ...
    (microsoft.public.scripting.vbscript)
  • Re: Undefined variable
    ... aren't critical enough to prevent execution of the script -- so the ... script will run in exactly the same way whether or not error reporting ... Prev by Date: ...
    (alt.php)
  • Re: VB Script Error
    ... You can run the script after you have logged in. ... Dim objNetwork ... Set objFileSys = CreateObject ... On Error Resume Next '// disable error reporting (e.g., ...
    (microsoft.public.scripting.vbscript)
  • Re: filtype() Problems
    ... But it gets stranger. ... At first I thought it was a problem with my for loop. ... Set your error reporting for the script to report all errors to try an ... the script and your filesystem. ...
    (comp.lang.php)
  • Re: VB Script Error
    ... Is there a way I can have the script run as a domain admin? ... Dim objNetwork ... Set objFileSys = CreateObject ... On Error Resume Next '// disable error reporting (e.g., ...
    (microsoft.public.scripting.vbscript)