Menu

How Does it Work?

clochardM33

How Does it Work?

Running SP2B

At the end of every SpecProc batch SpecProc checks this registry key:

...\SOFTWARE\VB and VBA Program Settings\SpecProc\Parameters\NextApp

Whatever is set as a value is passed to Windows for Windows to handle.

For example, is the value was: C:\Windows\System32\mspaint.exe then Paint would open after every batch.

This obviously makes no practical sense, but it just illustrates that SpecProc can run something when it completes. If the value is nothing then nothing happens.

SP2B populates the registry key value above with it's own executable name provided you have checked "Run after SpecProc" in the configuration.
This means that, if set, SP2B runs at the end of every batch.

File Copy

SpecProc saves a file that records what files it has just created. SP2B uses this file and copies everything to the folder:
wwwRoot\SpecProc Results Folder\your project.pro\your result files
See [Configuration]

The part "your project.pro\your result files" means "the things SpecProc just created, wherever your data was saved".

For example, if your data was saved in
C:\MassLynx\Default.pro\SpecProcResults\Example for SpecProc_Files\

and you had set:
wwwRoot = "C:\inetpub\wwwroot\" , and
SpecProc Results folder = "SpecProcResults\Your data goes here\"

Your files would be copied to:
"C:\inetpub\wwwroot\SpecProcResults\Your data goes here\Default.pro\SpecProcResults\Example for SpecProc_Files\"

This might look complicated, but it is nothing more than the original folders below a prefix you specify.

Web View - Using the default browser

The crucial part of the file path above is that it puts files into a location that your local web server can access them.
If you don't put them there, the web server cannot access them and you will get a page not found 404 error.

SpecProc uses an xml display scheme that is no longer valid; it is not supported by modern browser. It treats xml files as though they are files and not web pages and accesses them through file paths not web urls. This access method is the part that is not supported.
Changing SpecProc is not worth doing. It is easier to leave everything as it is and make use of the "Run App at end of Batch" feature (see above).
And in this case the app that is run at the end of the Batch is SpecProc2Browser.
Its purpose is to copy the files to a place that a web server can get to them and additionally remap the internal file paths so they are valid urls not file paths. This means that when you open a results file as though it were a web page, rather than as a file, everything works just as it did previously except you are in a modern browser.

To this end SP2B also has to copy and remap the style sheet files to match your specified file path. This is done as part of the configuration. [Configuration]

If you are interested in further reading then try these:


Related

Wiki: Configuration
Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.