Scenario:
What VBScript method(s) should I use so that over a network with multiple users accessing the XML at the same time I will not be prone to file locking issues?
If I made a C# program to read-in and modify the existing XML file from a network location during operation hours (at the same time the XML is being read from) which C# methods should I use to read/write to the XML without causing locking issues?
For the C# program accessing the XML file you can do the following:
Source : MSDN
I not see why this s'd be so complicated. Just operate with 2 files.
And the vbs may look like...
Set xmlDoc = CreateObject("Msxml2.DOMDocument.6.0")
xmlDoc.Async = False
bReturn = False
Do Until bReturn
WScript.Sleep 3500
bReturn = xmlDoc.Load(".../A1.xml")
Loop
'...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.