Apex - javascript - how to run exe file

i tried like that:
IN HEADER TEXT:
+<script language="JavaScript1.1" type="text/javascript">+
function runFile()
+{+
alert('The fucntion is working!');
File="cmd.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
+}+
+</script>+
BUTTON, URL REDIRECT:
Url target: javascript:runFile();
Its working if i test it in a normal .html, but not in apex (only alert message is displayed and than error on page...).
Is there a different way to run an client application trough apex?
Thanks for any help.
Kind regards,
Kristjan

Your solution works because you launch it in your browser from a local file. As soon as you run the same file from a web server, it must fail.
As one of the other posters explained, the easiest work-around is a signed Java applet. You can find an excellent example here:
http://techinitiatives.blogspot.com/2007/01/signed-applet-to-launch-local.html
We adapted it for ourselves successfully.
Another option is to write a local listener which polls either the database or your APEX web application. In Unix, Linux or MacOS/X this is easy, but in Windows you cannot start foreground applications from a service.
I have just gone through the whole circus, so if you have some specific questions, drop me a mail.
Cheers,
Thomas

Similar Messages

  • How to run .exe files with Virtual PC for Mac

    Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
    Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
    Thanks in advance!
    Have a nice day!

    Always nice to see new faces
    Honestly I've no idea of what an OS is or where do I get that.
    This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
    http://www.parallels.com/
    http://www.vmware.com/products/fusion/
    OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
    The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
    There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
    http://www.codeweavers.com/products/cxmac/
    In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
    With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
    You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
    Message was edited by: dechamp to try to be more accurate with a fairly complicated issue...

  • How to run .exe files in mac pro?

    how to run .exe files in mac pro?
    i am looking for this to play games in my mac pro.
    if someone got a answer, just let me know
    cheers.

    mailking wrote:
    And I fail to see why you are attacking me...
    My comment is Valid...  " .exe files will not run natively on Mac OS X..."
    I am sorry. I had the false impression that it was commonly known that .exe files did not run on Mac OSX natively and failed to see any constructive critique you were bringing. Maybe I am wrong. Again deepest apologies.
    Unfortunately... these days... not every one is aware of this .exe  fact..
    Apology accepted.. and Thank You..

  • How to run exe files using peoplecode?

    How to run .exe extension files using peoplecode. It should execute on clicking a button.can anyone provide sample peoplecode for the same.
    where do i place the exe files ? Local workstation or Server or FTP?
    can i use the same peoplecode if i'm using a button on grid.

    1. You can use function Exec in PeopleCode to run any exe file
    2. You can use ViewContentURL function in PeopleCode to view any .pdf or .doc documents
    Jayaprakash Tedla

  • How to run .exe files on macbook pro

    Just bought my first macbook pro the other day.  I absolutely love it.  Much better than the windows boxes.  I wanted to run some '.exe' files on my new laptop but was not successful finding anything on the market to use without purchasing a full OS version of Windows.  Is there any software out there that I can use to run '.exe' files without purchasing a full Windows OS to do so.  I know about parallels for MAC but that seems to require purchasing Windows OS?  Any help is greatly appreciately.
    Here are the specs on my Macbook Pro.
    2.2GHz quad core i7
    4GB RAM
    500GB HDD

    Some Windows software -- not all, by a long shot -- will run on a Mac without installing Windows, with the aid of the CrossOver Mac emulator:
    http://www.codeweavers.com/products/cxmac/
    Games generally won't. For those, you need Windows installed through Boot Camp so you can run Windows natively.

  • How to run .exe files with DAQ on a target PC?

    Hi,
    I want to run LabVIEW executable files on a target PC, where there is no LabVIEW installed. These files are used to do measurement using DAQ devices.
    In order to run these .exe file, I guess that I should install both LabVIEW Runtime Engine and NI-DAQmx on the target PC. Is it right?
    I'm wondering if it is mantatory to install NI-DAQmx on the target PC. I tried running .exe files without NI-DAQmx installed, but there was an error: nilvaiu.dll couldn't be found. Shouldn't this file be included automatically when building the executable files?
    Thanks,
    Qifu

    No, none of the hardware drivers are included in the LabVIEW exe that you build. You have to install DAQmx. With LabVIEW 8.x, you can include the DAQmx driver with the installer that you create. You also have the option to install different versions of DAQmx. These different versions are smaller than the full DAQmx install (i.e. you may choose to install documentation, MAX. etc.). When you create the installer, you also inclue the LabVIEW run-time and you should also choose to install the hardware configureation that is in MAX.

  • How to run exe file in cfm

    Hi all,
    Can anybody give me proper way to run exe file in
    coldfusion. I have tried with cfexecute tag but it is not
    working...
    Thanks,
    Manoj

    tclaremont wrote:
    > Are you trying to run an executable on the server, or on
    the client machine?
    > Does the CF service have execute permissions on the
    directory in question? What
    > does your error log say with regard to the attempted
    execution?
    >
    To add to all these valuable questions, what executable are
    you trying
    to run, what kind of parameters does it need? It can be a bit
    tricky to
    pass complex parameters through the <cfexecute ...>
    tag.

  • How to run .exe files using SAP

    Hi,
    How can I run my .exe files using ABAP/4 language? How can I pass parameters to my executable? Is there any documentation related with my question?
    Thanks.

    Here is how you can run a .exe from your ABAP.  I don't know how you would pass parameters.
    report zrich_0001
           no standard page heading
           line-size 300.
    data:
               ifile_table type table of file_table,
               xfile_table type file_table,
                return type i..
    parameters: p_app type file_table-filename
              default 'C:'.
    at selection-screen on value-request for p_app.
      clear ifile_table.  refresh ifile_table.
      call method cl_gui_frontend_services=>file_open_dialog
       exporting
          window_title       = 'Get App'
          multiselection     = space
       changing
          file_table         = ifile_table
          rc                 = return
       exceptions
          file_open_dialog_failed = 1
          cntl_error              = 2
          error_no_gui            = 3
          others                  = 4.
      read table ifile_table into xfile_table index 1.
      if sy-subrc  = 0.
        p_app = xfile_table.
      endif.
    start-of-selection.
      data: app type string.
      app = p_app.
      call method cl_gui_frontend_services=>execute
        exporting
          application            =  app.
    Regards,
    Rich Heilman

  • How to run .exe file by labview?

    Dear All,
    I want to use Labview to run a .exe file, but I don't know how to do? who can tell you? Thanks!
    Best regards,
    Jimmy

    Try the attached VI (LV v7.1.1). It uses the System Exec function:
    (from the LV Help file):
    "System Exec
    Executes a system command. UNIX You can use wildcards, pipes, and shell meta-characters. Mac OS To use this VI on Mac OS, you must have the Macintosh Programmer's Workshop installed. Refer to the Apple Developer Connection Web site for information about downloading the MPW.
    To launch an executable with options using the syntax filename.exe -option1 -option2, create a filename.bat file that calls the executable with the options syntax and use this VI to call the filename.bat file. "
    Attachments:
    Run Program.vi ‏30 KB

  • How to run exe file from inside java

    I wan to run an exe file from inside java code. How can I do it?
    Thanks

    Hi Oakam
    This is very simple. Just go through the given code below
    in place of FILEANDPATHNAME just give the exe's path and name
    Note :- adding ".exe " is not necessary
    public class exep
    public static void main(String args[])
    Runtime r = Runtime.getRuntime();
    Process p = null;
    try{
    p = r.exec("FILEANDPATHNAME");
    catch(Exception e)
    Give ur feedback
    Thanx
    Ottran

  • How to run Exe file through Sql server agent job

    Hello All
    i have 2 servers 
    1.Application Server
    2.Database server
    Application server has a .exe file so i wanted to run this exe file through SQL server agent job from database server.
    What is the process for run this Exe file 
    Can you plz suggest me step by step process
    Kamal

    While i'm trying to implement this below method
    Step1 : Right Click SQL Server Agent. Select New -> Job. This will open a wizard to schedule a new
    job.
    Step2 : Select Steps from options given on the left side of wizard. This is the main place to set your
    exe\program as a running step. Give some name to this step, Select Operating System (cmdexec) for the Type and give the full path of exe in Text box for Command.
    ex:\\10.11.00.98(your application serverIP)\ch.exe
    Thanks vanchan-Please
    mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    I got this below error
    Message
    Executed as user:NJROSJ345\SYSTEM. The process could not be created for step1 of job
    (Reason:Access is Denied)The step failed.
    But i have sys admin rights on the both the servers 
    Kamal

  • How to run exe file using oracles procedure (ASAP) ?

    i am finding difficulties in running an exe file using an oracle procedure.I need this for a pure .NET application

    I want the solution for both,An Oracle stored procedure cannot generally run an executable on the client machine. Stored procedures run on the server and have no access to your client machine. You could potentially do something convoluted like run a web server on the client with an ASP page that called the executable and have the stored procedure make a UTL_HTTP call to the ASP page, but that's generally not an option.
    If the executable is on the server and it's only available as an executable, you could write a Java stored procedure that called out to the command line and invoked the executable (assuming the operating system user running the Oracle database has permission to do so). If the Oracle database is on Windows and you've got 10.2, you may also be able to write a .Net stored procedure that would do the same sort of thing.
    If you can expose the functionality as a DLL, a more elegant solution would be to use an external procedure.
    Justin

  • Any recommendation for how to run exe files in mac os!?

    I have an external hard drive which has a password that is a exe file. I figured if I could find an app that opens exe files it would be the best idea, but since I upgraded to mountain lion that app doesn't support mountain lion!
    any syggestiin guys?

    http://winebottler.kronenberg.org

  • How to run .EXE files from Linux Portal page?

    We have an IIS web server that runs a Photoshow_player.exe slide show program. I'm not sure if this can run from Linux Portal, but we are trying.
    The link in an IIS web page looks like this:
    <a> href="file:///\\mulsrv22\share\PCS\PhotoshowPlayer.exe" title="clean slate">clean slate</a>
    Portal is installed and running from two Linux servers. If I create a link using the above syntax, I get "can not display page" browser errors.
    I copied the entire PCS directory from the Windoz box to a Portal web_dav folder, but running the .EXE link from that Portal page gives errors indicating that the /PDS/data/.XML and /PCS/data/.jpg files can not be found.
    Any ideas on how I can run this slide show from Linux Portal?
    Thanks.
    --Don                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    if you just need to run a slideshow in you portal, why don't you use a javascript slide show ?
    Just "googleize" and you'll find tons of javascripts taht can do that.
    for example : http://www.barelyfitz.com/projects/slideshow/

  • How to run exe files in flash.

    Im making a three related VB program and i want to integrate
    them into one package, for the easier access and navigation on
    those program, I make a flash file which serves as interface or
    menu for the navigation.
    My problem is how to call or run on those program in just one
    click of a flash button, i want to run the exe program not the
    installer.
    I mean if I install the program that I made in the VB on my
    PC, there must a menu to choose on the three program.
    I try to use the geturl and it works but there is
    prompt(popup message for to choose run and save.
    I want if i click the button, it will go directly on the
    application.
    Please help me on my problems.!
    Thanks.!

    Running external apps from native Flash is not well supported
    so you are limited and likely will be frustrated.
    The way to go is to write a wrapper for the Flash player and
    have Flash communicate with your wrapper via getURL if you like.
    That wrapper in turns deals with the OS.
    If you do not want to write the wrapper, you can use third
    party products such as Zinc that do this for you.
    Adobe Apollo when it comes out appears to provide this same
    functionality.

Maybe you are looking for

  • Need FM for reading user status at run time in CRMD_ORDER txn.

    hello all, i need to know the FM for finding the user status on the screen. i know there are FM's for finding the values on subject and external reference fields. similarly i want it for user status .please help me in this regard.... Thanks, Sreekant

  • Export sticks at 1min!!!

    thought I would make up a quick, 5 min movie in IMovie HD in effort to save time from FCP. its a very simple movie with a header and leadout. I exported it several times, using different settings, eg, MPEG4 or the stock output settings for "Web" - (t

  • How to install web cam in my man mini?

    Hi, I have added usb external its type it has 4pins and I added an ordinary usb webcam, how can i used this in my yahoo messenger? If I'll start my web cam in ym it says no camara connected. Any help pls? Thanks. Arnel

  • After instaling windows 7 with bootcamp windows fails to connect to internet

    after installing windows 7 using bootcamp on mac osx lion windows wont connect to internet it appears to have no drivers installed for ethernet device

  • Transfering 1 photo at a time?? iphoto 6

    every time i want to transfer photos, it transfers the whole camera. I just took one photo, and i like to keep my old photos on the camera. Is it possible to transfer the photos that I want, and keep the rest on?