I used this code to get the DateLastModified from a file in the sharepoint:
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFile = fso.GetFile("\\sharepoint.site.com\Word_File.doc")
XDocument.DOM.selectSingleNode("/my:.....").text = CDate(objFile.DateLastModified)
but after some windows updates I guess, I'm getting this error:
"File not found", Script.vbs
Everything was working just fine, we haven't modified the code on the form, but just recently we have this problem
we are sure that we have access and permissions to the sharepoint and files under it, becuase if I change the code to (Mapping the same sharepoint to a sharedrive):
Set fso = CreateObject("Scripting.FileSystemObject")
Set objFile = fso.GetFile("E:/Word_File.doc")
XDocument.DOM.selectSingleNode("/my:.....").text = CDate(objFile.DateLastModified)
everything works again, do you have an idea what's going on here?, do you have any information related with Windows Updates that may affect my code on Infopath?
I need help on this!!