Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Running External Program in Windows Environment

    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.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Javascript server-side? Never done any. Found a good link (maybe) to get you started though.

    http://oradb1.jinr.ru/netscape/wssja/jsserv.htm

    Good luck!

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can you give some script examples to run program, because I'm really new in that field.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •