How to start Root automatically

we developed a program of acquisition of the cosmic rays by using VISUAL BASIC 6 software. Data are directly saved in ROOT file installed on windows.At the end of acquisition we launch the Root program data analysis, to see the histograms and others.

Our problem is the following:
We want that, at the end of acquisition, the program of data analysis starts automatically without human intervention. how can we do that ? where will we intervene? on Windows, Root or visual BASIC ?
Thank for your answer .

[quote=“papajean”]we developed a program of acquisition of the cosmic rays by using VISUAL BASIC 6 software. Data are directly saved in ROOT file installed on windows.At the end of acquisition we launch the Root program data analysis, to see the histograms and others.

Our problem is the following:
We want that, at the end of acquisition, the program of data analysis starts automatically without human intervention. how can we do that ? where will we intervene? on Windows, Root or visual BASIC ?
Thank for your answer .[/quote]
you can start ROOT with "root -q -b -x " or other application using:
CreateProcess msdn2.microsoft.com/en-us/library/ms682425.aspx
or
Creating a File Association msdn2.microsoft.com/en-us/library/aa969346.aspx (in case you want to associate specific file types with ROOT), and then use Shell functions to open a file (like [b]ShellExecute/b ).