How can I call a external exe file through javascript, something like notepad.exe and how do I specify the path if I dont want to hardcode the path.

Also does anyone know how to do this in vbscript or flash action script?