themcse
I thought I sent a reasonable facsimile of the following post to you by PM but I do not see it in the out box so here goes again (as you said in the post.... Weird).
I had to add a "Dim intcounter" statement.
I believe that the hard part of your script works and so far as I have been able to test the script tests and re-tests for the internet connection and attempts to executes the sub-scripts "doStep#()". My problem is that these subs fail.
A couple of examples of sub-scripts follow:
'objExplorer.Document.Body.InnerHTML = "Running Script... " & "Deleting Raw Data - 1 of 21"
Set objFSO = CreateObject("Scripting.FileSystemObject")
on error resume next
objFSO.DeleteFile("C:\Raw Data\*.csv")
on error goto 0
wscript.sleep 1000 and
'objExplorer.Document.Body.InnerHTML = "Running Script... " & "Raw Data - 7 of 21"
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run """C:\Raw Data.bat""", 6, True
set wshshell = nothing
wscript.sleep 10000 For my education can you explain why you changed the "Set objExplorer = WScri..." stuff? I presume I have to change (in the sub-scripts) the "objExplorer.Docume..." to objIE.Docume..."? Is this correct?
Any suggestions?
And again, thanks for your expert help.