My company recently purchased a $19,000 complete training set from TrainSignal with a full site license.
While the material is good, it only works when launched from a locally attached drive or local copy.
If you try to run the software from a UNC path \\server\trainsignal all items give an error.
Turned out that they were using a file called proxy.exe made by northwind renamed to whatever the media html file that needed to be executed. Under each media cd folder there was an fscommand folder with batch files and exe files of the same name(exe files were renamed proxy.exe files). The batch files contained the following command:
Batch files cannot be executed properly from unc paths as they assume c:\windows as the working folder. So instead of launching \\server\share\4b\4b.html it executes c:\4b\4b.html which does not exist.
Some of the material used ftoolapp.exe to launch things with the same result.
This is all due to using Flash based menus instead of something that actually works properly outside of the browser world.
We were also able to integrate this into IIS by creating a link to the UNC path. Making a virtual directory will not help as when the menu.exe files are executed in IE, they execute from %username%\temporary internet files instead of the intended location.
Lesson to be learned: write your application for the intended platform to be used. Not just make it look nice using Flash. Testing different scenarios is not a bad idea either.
The script has a few different functions:
runs through all subfolders of the execution location, so you would place the exe into the root of all the training material. Renames the existing .exe files that have a corresponding .bat name to .old
Also finds any ftoolapp.exe files, renames them to .old and makes a copy of itself instead.
Performs the same function as /change, except backwards. Deletes the new .exe files and renames the .old files to .exe
This is the intended mode for the batch file problem.
Checks its own name and finds the corresponding batch file. Reads the contents of the batch file and strips start ../ from the command. Executes the command as stated using the current unc or local path.
filename.xxx as a switch
This switch was made after i discovered another problem with some of the newer training material. It was launched using ftoolapp.exe filename.xxx, which exhibited the same problem with UNC.
If the operating system is Vista, checks for the presense of the TechSmith codec in the registry and checks the file extension for .wmv or .avi and Starts Windows Media Player %programfiles%\Windows Media Player\wmplayer.exe with the corresponding media file name. Other extensions launch using the associated application.
If the OS is Windows XP, executes whatever the associated media player file is.
I ran into problems on Vista trying to launch associated WMP files, WMP comes up empty and does not play. XP did not exhibit this problem.
Please dont use the old script i posted earlier. I found yet another glitch that needed changing. Here is the new one.