{"id":52,"date":"2007-07-16T22:50:05","date_gmt":"2007-07-16T22:50:05","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?page_id=52"},"modified":"2008-01-18T16:33:03","modified_gmt":"2008-01-18T16:33:03","slug":"personalwebsites_csextension","status":"publish","type":"page","link":"https:\/\/www.wapshere.com\/missmiis\/code-snippets\/personalwebsites_csextension","title":{"rendered":"PersonalWebsites_CSExtension.vb"},"content":{"rendered":"<p><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><span style=\"font-size: 8pt; br: 'Courier New'\"><span style=\"color: blue\"><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Imports<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> Microsoft.MetadirectoryServices<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Imports<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> System.IO<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Imports<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> System.Data.SqlClient<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Imports<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> OCG.Utility.Xml<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Imports<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> zbitz<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0 <\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">Public<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> <\/font><span style=\"color: blue\">Class<\/span><font color=\"#000000\"> MACallExport_PersonalWebsites<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleFileImport<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleCallExport<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Const<\/span><font color=\"#000000\"> DB_TABLE_NAME <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = &#8220;PersonalWebsites&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Const<\/span><font color=\"#000000\"> DB_CONNECTION_STRING <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = &#8220;Database=MIISData;Data Source=localhost;Integrated Security=Yes;&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlExportConnection <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlConnection(DB_CONNECTION_STRING)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> MAcol <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> MAConfiguration(Utils.ExtensionsDirectory &amp; &#8220;\\MA_Params.xml&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> Params <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> MAParams = MAcol.Parameters(&#8220;PersonalWebsites-MA&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> MAName <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = Params(&#8220;ma-name&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0 <\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Public<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><font color=\"#000000\"> GenerateImportFile(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> filename <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> connectTo <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> user <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> password <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> configParameters <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> ConfigParameterCollection, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> fullImport <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Boolean<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> types <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> TypeDescriptionCollection, <\/font><span style=\"color: blue\">ByRef<\/span><font color=\"#000000\"> customData <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleFileImport.GenerateImportFile<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> WebRoot <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = Params(&#8220;personal-website-root&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> fw <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> StreamWriter<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Try<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: green\">&#8216;Open the output file specified in the run profile<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 fw = <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> StreamWriter(filename, <\/font><span style=\"color: blue\">False<\/span><font color=\"#000000\">)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Catch<\/span><font color=\"#000000\"> ex <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> Exception<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Throw<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> UnauthorizedAccessException(&#8220;Unable to open file: &#8221; &amp; filename)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Try<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 fw.WriteLine(&#8220;WebPath,staffid,uid,Type,Status&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 ListFolders(WebPath, fw)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 fw.Close()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><font color=\"#000000\"> ListFolders(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> path <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByRef<\/span><font color=\"#000000\"> fw <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> StreamWriter)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> s() <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> folders <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> System.Collections.IEnumerator<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlQueryConnection <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlConnection(DB_CONNECTION_STRING)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 sqlQueryConnection.Open()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 s = System.IO.Directory.GetDirectories(path)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 folders = s.GetEnumerator<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">While<\/span><font color=\"#000000\"> folders.MoveNext<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlQueryCommand <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlCommand(&#8220;SELECT * FROM &#8221; &amp; DB_TABLE_NAME &amp; &#8221; where WebPath='&#8221; &amp; folders.Current &amp; &#8220;&#8216;&#8221;, sqlQueryConnection)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> cnReader <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> SqlDataReader = sqlQueryCommand.ExecuteReader<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> importLine <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> cnReader.Read <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: green\">&#8216;DB columns: WebPath, staffid, uid, Status<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 importLine = cnReader.Item(1) &amp; &#8220;,&#8221; &amp; cnReader.Item(2) &amp; &#8220;,&#8221; &amp; cnReader.Item(3)<\/p>\n<p><\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Else<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 importLine = &#8220;,,,&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 importLine = folders.Current &amp; &#8220;,&#8221; &amp; importLine<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 fw.WriteLine(importLine)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 cnReader.Close()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">While<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 sqlQueryConnection.Close()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Public<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><font color=\"#000000\"> BeginExport(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> connectTo <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> user <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> password <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> configParameters <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> ConfigParameterCollection, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> types <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> TypeDescriptionCollection) <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleCallExport.BeginExport<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 sqlExportConnection.Open()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Public<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><font color=\"#000000\"> ExportEntry(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> modificationType <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> ModificationType, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> changedAttributes <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">(), <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> csentry <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> CSEntry) <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleCallExport.ExportEntry<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> WebPath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = csentry(&#8220;WebPath&#8221;).Value<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> csentry(&#8220;Status&#8221;).IsPresent <\/font><span style=\"color: blue\">AndAlso<\/span><font color=\"#000000\"> csentry(&#8220;Status&#8221;).Value = &#8220;archive pending&#8221; <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> ArchiveWebFolder(WebPath, csentry(&#8220;uid&#8221;).Value) = 0 <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 updateRow(WebPath, &#8220;archived&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">ElseIf<\/span><font color=\"#000000\"> modificationType = modificationType.Delete <\/font><span style=\"color: blue\">AndAlso<\/span><font color=\"#000000\"> csentry(&#8220;Status&#8221;).Value = &#8220;archived&#8221; <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 updateRow(WebPath, &#8220;deleted&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 DeleteWebFolder(csentry)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">ElseIf<\/span><font color=\"#000000\"> modificationType = modificationType.Add <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Not<\/span><font color=\"#000000\"> rowExists(WebPath) <\/font><span style=\"color: blue\">AndAlso<\/span><font color=\"#000000\"> csentry(&#8220;uid&#8221;).IsPresent <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0<\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> CreateWebFolder(csentry) = 0 <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 addRow(WebPath, csentry(&#8220;staffid&#8221;).Value, csentry(&#8220;uid&#8221;).Value, &#8220;adding&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">ElseIf<\/span><font color=\"#000000\"> rowExists(WebPath) <\/font><span style=\"color: blue\">And<\/span><font color=\"#000000\"> csentry(&#8220;Status&#8221;).Value = &#8220;adding&#8221; <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> CreateWebFolder(csentry) = 0 <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 updateRow(WebPath, &#8220;active&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Else<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Not<\/span><font color=\"#000000\"> rowExists(WebPath) <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 addRow(WebPath, csentry(&#8220;LBSNo&#8221;).Value, csentry(&#8220;uid&#8221;).Value, &#8220;active&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> CreateWebFolder(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> csentry <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> CSEntry) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> script <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0= Params(&#8220;script-createsite&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 RunProcess(script, csentry(&#8220;uid&#8221;).Value)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> DeleteWebFolder(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> csentry <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> CSEntry) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> script <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> = Params(&#8220;script-deletesite&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 RunProcess(script, csentry(&#8220;WebPath&#8221;).Value.Split(&#8220;\\&#8221;)(4))<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> ArchiveWebFolder(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> path <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> uid <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> Int16<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> status <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> Int16<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> archive <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> Czzip<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> archivePath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = Params(&#8220;archive-path&#8221;) &amp; uid &amp; &#8220;.zip&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> System.IO.File.Exists(archivePath) <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Throw<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> UnexpectedDataException(&#8220;Archive file &#8221; &amp; archivePath &amp; &#8221; already exists&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> logtxt = <\/font><span style=\"color: blue\">Date<\/span><font color=\"#000000\">.Now &amp; &#8221; Zipping &#8221; &amp; path &amp; &#8220;: &#8220;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 status = archive.ZipFile(path, archivePath)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> status = 0 <\/font><span style=\"color: blue\">AndAlso<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Not<\/span><font color=\"#000000\"> System.IO.File.Exists(archivePath) <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 status = -1<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> status<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Public<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><font color=\"#000000\"> EndExport() <\/font><span style=\"color: blue\">Implements<\/span><font color=\"#000000\"> IMAExtensibleCallExport.EndExport<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Sub<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> RunProcess(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> cmd <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> params <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> exitCode <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><font color=\"#000000\"> = -1<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> proc <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> System.Diagnostics.Process<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> waitTime <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><font color=\"#000000\"> = 0<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Const<\/span><font color=\"#000000\"> WAIT_TIME_IN_SECONDS = 5<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Const<\/span><font color=\"#000000\"> ONE_SECOND = 1000<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Const<\/span><font color=\"#000000\"> SLEEP_TIME_IN_SECONDS = 1<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 proc.StartInfo.FileName = cmd<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 proc.StartInfo.Arguments = params<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 proc.StartInfo.WindowStyle = ProcessWindowStyle.Normal<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 proc.Start()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Try<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Not<\/span><font color=\"#000000\"> proc.HasExited <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">While<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">True<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 System.Threading.Thread.Sleep(SLEEP_TIME_IN_SECONDS * ONE_SECOND)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 waitTime += SLEEP_TIME_IN_SECONDS<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> proc.HasExited <\/font><span style=\"color: blue\">Or<\/span><font color=\"#000000\"> waitTime &gt;= WAIT_TIME_IN_SECONDS <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0<\/font><span style=\"color: blue\">Exit<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">While<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">While<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">If<\/span><font color=\"#000000\"> proc.HasExited <\/font><span style=\"color: blue\">Then<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 exitCode = proc.ExitCode<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Else<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Throw<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> UnexpectedDataException(&#8220;Timeout running process &#8221; &amp; cmd &amp; &#8221; &#8221; &amp; params)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">If<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Catch<\/span><font color=\"#000000\"> ex <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> Exception<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Throw<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> UnexpectedDataException(&#8220;Error: &#8221; &amp; ex.Message)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Try<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> exitCode<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 proc.Kill()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> deleteRows(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> WebPath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> delSQL <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = &#8220;DELETE FROM &#8221; &amp; DB_TABLE_NAME &amp; &#8221; WHERE WebPath = &#8216;&#8221; &amp; WebPath &amp; &#8220;&#8216;&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlDelCommand <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> SqlCommand = <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlCommand(delSQL, sqlExportConnection)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> sqlDelCommand.ExecuteNonQuery()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> addRow(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> WebPath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> LBSNo <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> uid <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> Type <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> Status <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> addSQL <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = &#8220;INSERT INTO &#8221; &amp; DB_TABLE_NAME &amp; &#8221; (WebPath, staffid, uid, Status) VALUES&#8221; &amp; &#8220;\u00c2\u00a0 (&#8216;&#8221; &amp; WebPath &amp; &#8220;&#8216;, &#8216;&#8221; &amp;\u00c2\u00a0staffid &amp; &#8220;&#8216;, &#8216;&#8221; &amp; uid &amp; &#8220;&#8216;, &#8216;&#8221; &amp; Status &amp; &#8220;&#8216;)&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlAddCommand <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> SqlCommand = <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlCommand(addSQL, sqlExportConnection)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> sqlAddCommand.ExecuteNonQuery()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> updateRow(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> WebPath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> Status <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Integer<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> modSQL <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> sqlModCommand <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> SqlCommand<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 modSQL = &#8220;UPDATE &#8221; &amp; DB_TABLE_NAME &amp; &#8221; SET Status ='&#8221; &amp; Status &amp; &#8220;&#8216; where WebPath='&#8221; &amp; WebPath &amp; &#8220;&#8216;&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 sqlModCommand = <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlCommand(modSQL, sqlExportConnection)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> sqlModCommand.ExecuteNonQuery()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> rowExists(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> WebPath <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Boolean<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: green\">&#8216;Returns TRUE if the row already exists in the table<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: green\">&#8216;Pass % for wildcard<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> mySelectQuery <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\"> = &#8220;SELECT * FROM &#8221; &amp; DB_TABLE_NAME &amp; &#8221; where WebPath = &#8216;&#8221; &amp; WebPath &amp; &#8220;&#8216;&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> myConnection <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlConnection(&#8220;Database=MIISSync;Data Source=localhost;Integrated Security=Yes;&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> myCommand <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> SqlCommand(mySelectQuery, myConnection)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 myConnection.Open()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Dim<\/span><font color=\"#000000\"> myReader <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> SqlDataReader = myCommand.ExecuteReader()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 rowExists = myReader.HasRows()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 myReader.Close()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 myConnection.Close()<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\"><\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><span style=\"color: blue\">\u00c2\u00a0 <\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Private<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><font color=\"#000000\"> escapedString(<\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> originalString <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">, <\/font><span style=\"color: blue\">ByVal<\/span><font color=\"#000000\"> commandType <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><font color=\"#000000\">) <\/font><span style=\"color: blue\">As<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">String<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Select<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Case<\/span><font color=\"#000000\"> commandType<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Case<\/span><font color=\"#000000\"> &#8220;cmd&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 escapedString = originalString.Replace(&#8220;,&#8221;, &#8220;\\,&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 escapedString = escapedString.Replace(&#8220;+&#8221;, &#8220;\\+&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 escapedString = escapedString.Replace(&#8220;&gt;&#8221;, &#8220;\\&gt;&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> escapedString<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Case<\/span><font color=\"#000000\"> &#8220;sql&#8221;<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 escapedString = originalString.Replace(&#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Return<\/span><font color=\"#000000\"> escapedString<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Case<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Else<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">Throw<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">New<\/span><font color=\"#000000\"> ArgumentException(&#8220;Valid arguments: cmd, sql&#8221;)<\/font><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Select<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\">\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 <\/font><span style=\"color: blue\">End<\/span><font color=\"#000000\"> <\/font><span style=\"color: blue\">Function<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\"><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span style=\"font-size: 8pt; color: blue; font-family: 'Courier New'\">End<\/span><span style=\"font-size: 8pt; font-family: 'Courier New'\"><font color=\"#000000\"> <\/font><span style=\"color: blue\">Class<\/span><\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt\" class=\"MsoNormal\"><span lang=\"EN-GB\"><\/span><\/p>\n<p><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imports Microsoft.MetadirectoryServices Imports System.IO Imports System.Data.SqlClient Imports OCG.Utility.Xml Imports zbitz \u00c2\u00a0 Public Class MACallExport_PersonalWebsites \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Implements IMAExtensibleFileImport \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Implements IMAExtensibleCallExport \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Const DB_TABLE_NAME As String = &#8220;PersonalWebsites&#8221; \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Const DB_CONNECTION_STRING As String = &#8220;Database=MIISData;Data Source=localhost;Integrated Security=Yes;&#8221; \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Dim sqlExportConnection As New SqlConnection(DB_CONNECTION_STRING) \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Dim MAcol As New MAConfiguration(Utils.ExtensionsDirectory &amp; &#8220;\\MA_Params.xml&#8221;) \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 Dim Params As MAParams&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":30,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-52","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/Pkp1o-Q","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":0,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/52\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/30"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}