J
Jacek Jurkowski
Having file name:
1) Open file using default external Windows application.
2) Wait for external application to modify the file.
I did that like below but for some reasons that code
does not always work properly:
-------------------------------------------------------
[loading from SQLServer table into c:\temp.xml" code]
fileName = "c:\\temp.xml";
Process proces = Process.Start(fileName);
while(!Process.HasExited)
{
Application.DoEvents();
}
or
process.WaitForExit();
[saving into SQLServer table from c:\temp.xml code]
File.Delete(fileName);
---------------------------------------------------------
In that case the process exits imediatelly after running IE
to open an xml and code goes into Delete section on open
file ...
How to do that in other (proper) way?
1) Open file using default external Windows application.
2) Wait for external application to modify the file.
I did that like below but for some reasons that code
does not always work properly:
-------------------------------------------------------
[loading from SQLServer table into c:\temp.xml" code]
fileName = "c:\\temp.xml";
Process proces = Process.Start(fileName);
while(!Process.HasExited)
{
Application.DoEvents();
}
or
process.WaitForExit();
[saving into SQLServer table from c:\temp.xml code]
File.Delete(fileName);
---------------------------------------------------------
In that case the process exits imediatelly after running IE
to open an xml and code goes into Delete section on open
file ...
How to do that in other (proper) way?