I'm using SgmlReader (found at
http://www.gotdotnet.com/Community/U...s/Details.aspx
?SampleGuid=b90 fddce-e60d-43f8-a5c4-c3bd760564bc)an d I'm
trying to make it iterate over (process) numerous files
(actually, one feeds it urls to the various files.) The
download includes both a C# Solution for ASP.NET and a
CommandLine CSproject.
I have 2 questions:
1) What is the C# code to add to the Solution to make it
process many files (how can i feed it a list of urls to
iterate through...this is how I do it in Excel with VBA:
Sub Get_SEC_Data()
'
' Get_Data Macro
Dim i As Integer
Dim gFile As String
For i = 1 To 7735
'this assigns the path from the Worksheets("She et11") to
gFile (THE FILE TO OPEN)
gFile = Worksheets("She et11").Range("A 2:A7736").Find
(What:=i, After:=Workshee ts("Sheet11").R ange("A2"),
LookIn:=xlValue s, _
LookAt:=xlWhole , SearchOrder:=xl ByRows,
SearchDirection :=xlNext, MatchCase:=Fals e) _
.Offset(0, 1)
Next i
End Sub
So I'm just reading the urls from the cells in a
spreadsheet that also contains the code.
2) How does one use a CommandLine in conjunction with
other code of my making, ie, can I call the SgmlReader.exe
from within another program, or should I just put the code
to iterate through the urls directly into the ASP.NET code
as per question 1?
CommandLines are totally new to me so any guidance would
be of help.
Thanks,
Paul