after Windows Updates "File not found" Error in Infopath - InfoPath Dev
in

InfoPath Dev

after Windows Updates "File not found" Error in Infopath

Last post 06-15-2010 11:50 AM by ch3c05. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-15-2010 11:50 AM

    • ch3c05
    • Not Ranked
    • Joined on 06-15-2010
    • Posts 1

    after Windows Updates "File not found" Error in Infopath

    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!!

     

    Filed under:
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.