Filesystemobject.DateCreated returns error 5 - invalid procedure call
Posted on 2005-04-12
Here's a strange item that I can't seem to solve.
My very stable vb code which has been running for many years (vb6 sp6) includes a reference to the
All of a sudden, I am getting error 5 - invalid procedure call even though the filename used when making the call is valid.
If I replace datecreated with datelastmodified, everything works fine (but I don't want the last modified date, I want the creation date)
I should also point out that this 'issue' only happens on some of the workstations but never on the development machine
(everything dimensioned correctly)
set fso2= new filesystemobject
Set f = fso2.GetFile(validfilename)
The 'validfilename' refers to a valid file stored on a DVDROM .
The DVD was created by a client. This code will execute correctly on my development system, but on a workstation that contains the compiled code only, it bombs.
This just started happending today.