Home

LPRun.exe . . . . how to tell if process finished

"C:\Program Files (x86)\LINQPad5\LPRun.exe" -format=csv C:\Users\Me\LinqPadDemo\GetData.linq > OutputData.csv

In the above example, a script is executed and data is dumped out as a csv file. The file can take several minutes to output. Once the data is written to file, I then import it into a database.

Is there are way of telling if the file has been completely written so that I avoid any chance of attempting to import the data while the file is incomplete?

Hope that makes sense!

Comments

Sign In or Register to comment.