View Full Version : Running External Program in Windows Environment

08-06-2002, 09:23 PM
Please, can anyone tell me how to call any executable program using JavaScript on the server side.
I need to run a program that would run a complicated report and save the result in a PDF format file. Then I will open that file in browser to show to the user.

08-06-2002, 09:40 PM
Javascript server-side? Never done any. Found a good link (maybe) to get you started though.


Good luck!

08-07-2002, 02:14 PM
Is there any way to run external program within script.
Kind of like - exec("c:\file.exe") or run("c:\file.exe") e.t.c.?

08-07-2002, 02:21 PM
Not really no - server-side javascript is defunct technology. Client side javascript can only open executable programs in with low-security settings, and even then only in IE.

Many server-side languages can create PDF documents, but if you want to open and run and windows program, you will need a windows server environment - specifically IIS.

08-07-2002, 03:07 PM
Can you give some script examples to run program, because I'm really new in that field.