PDA

View Full Version : Opening external programs


bjornbec
05-29-2007, 11:03 PM
Hi!

I have a program in which I open winamp with the code:

getURL("C:/Program Files/Winamp/winamp.exe", "_blank");

This open winamp, but only after I have pressed "run" like three times on a Explorer security warning.

I wonder if there are any other way of doing it without getting all the warnings.

Björn

inhan
05-29-2007, 11:13 PM
If it is a stand-alone program (a projector file) you will need to use something like fscommand that calls a ".bat" file, which opens the program. This bat file should be in a folder called "fscommand" at the same directory of your projector file.

Bat files can be written in simple text editing programs in plain text format, and then when you change the file extension to .bat you're done. Finally the content is:

start ../resume.pdf

red part is the relative path of the file to this bat file. 2 dots with a fwd slash takes it to an upper level. And the fscommand code is:

fscommand("exec", "nameOfYourBATfile.bat");