Javascript calling .exe file

It's possible to execute this on oracle apex on submit page or on button click?
<script language="javascript" type="text/javascript">
function RunEXE()
var oShell = new ActiveXObject("WScript.Shell");
var prog = "c:\\WINDOWS\\system32\\notepad.exe";
oShell.Run('"'+prog+'"',1);
</script>
If afirmative, how can i to do it?

You are NOT advised to do this in APEX... Running VBScript is a VERY BAD IDEA and can open your users up to MANY NASTY things... What exactly are you looking to do here??
Thank you,
Tony Miller
Webster, TX
What if you really were stalking a paranoid schizophrenic... Would they know?

Similar Messages

  • I wants to call .Exe file from Java Programme

    I wants to call .Exe file from Java programme. Please give answer with example. This very urgent. Help me

    hi
    u can use Runtime.exec() method in java.lang package
    to execute exe files
    regards
    pnp

  • How to include and call exe file in jar?

    Hi, I am writing a Java application that calls an external exe file to accomplish some tasks. In order to make the program more user friendly, I would like to package the Java application and the exe file into one JAR file and distribute that JAR file to users. I tried to package all these files by running the following command:
    jar cmf manifest.txt java_class_file exe_fileThe manifest.txt contains only the following entry:
    Main-Class: java_class_fileHowever, when I execute the program with java -jar bundle.jar, the JVM complains that it cannot find the exe file. (Everything works fine when I run the original class file with java)
    Would anyone kindly teach me how to do this?
    Thanks in advance!

    You cannot call an exe file in a jar.
    You can have the jar unpack the exe and then run it however.

  • How can I call .exe file in java

    Hello,
    I want to call excutable files(.exe) in my java source code. How can I use the excutable files in java code.
    Thanks.
    Robin

    See java.lang.Runtime.exec()

  • Calling .exe File

    In C , Using System Command we can call an .exe file
    eg:System("c:\sample.exe");
    Like this,Is there is any Way to Call an .Exe File
    from Java Programming

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Calling exe files from java

    heyy
    can anybody please help me out in calling an exe file using java??
    also i would like to pass parameters tooo.
    i have been trying the following runtime code
    but found no success
    Runtime rt = Runtime.getRuntime();
    Process proc = rt.exec("make.exe 12");
    proc.waitFor();
    int exitVal = proc.exitValue();
    Does anybody havea better soultion???
    Thanks for your time
    Rachit

    Read this article, please http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • How to call exe files from APEX

    Hi all,
    How to invoke or call some exe files like word or yahoo messenger from oracle apex ?
    Apex 4.2.2
    DB 11g
    Thanks

    956320 wrote:
    How to invoke or call some exe files like word or yahoo messenger from oracle apex ?
    Apex 4.2.2
    DB 11g
    Apex is a set of PL/SQL suite of packages and procedures, with tables and so on. This code is called from a web server (e.g. Apache runing mod_plsql) via standard Oracle client-server. The code executes INSIDE the database. The codes creates a HTML buffer. This buffer is read by the web server component that made the call. And send to the web (browser) client.
    That is first and foremost fundamental to understand about Apex.
    Within this context - where is this executable file to be loaded, with which parameters, by whom, and where, to do what exactly?

  • How to call exe file as a link in oracle portal

    I have an executable file (.exe) that I would like to call as a link from portal. I've uploaded the file and can click it and the executable runs. However, I'd now like to be able to pass a URL as a parameter to the executable file and still have the executable run. Any ideas on how I can accomplish this?

    No.
    However I might try writing a PHP page and use shell_exec inside to pull it off.
    http://www.chipmunkninja.com/Program-Execution-in-PHP%3A-exec-m@
    You could link or redirect from the portal to the php page and even have the php send you back to the portal.

  • Calling .exe file from process flow

    Hi All,
    I want to call an executable file from my process flow. What should I do for this. Please tell me. Eg. I want to call RUN.exe located in "c:\myfolder\run.exe" what should I do?
    Please help.
    Thanks,
    Danish

    I have had trouble with the user defined operator.
    Instead I use SQLPLUS operator to do these types of things.
    Use this for the Script Value:
    host c:\myfolder\run.exe
    exit;
    /

  • Calling exe file using java

    Hi,
    Can any one tell me how to call an exe from java. as i am very new to java, i would appriciate if i get a sample code for calling an exe from java stored procedure whihc can be called from pl/sql.
    Thanks
    Regards
    Gaurav

    Hi Gaurav,
    I don't think this is the right forum for your question, but anyway,
    have you seen this web page?
    http://asktom.oracle.com/pls/ask/f?p=4950:8:1570555::NO::F4950_P8_DISPLAYID,F4950_P8_B:952229840241,Y
    I think it may be what you are looking for.
    Good Luck,
    Avi.

  • Launch EXE file from IC WebClient

    Hi All,
    How can we call .exe file from IC WebClient.
    we want to launch the .exe file from the navigation into application work area.
    any suggestion would be great.
    Thanks,
    Raj.

    Hello Raj,
    The best way to do this would be with the Transaction Launcher. Depending on the version of CRM you are running, you might need to modify the handler class -- as some newer version of CRM seemed to append the http preface to the front of any non-URL file name. Of course, if your EXE program runs as a web application, you could just call the URL.
    Best regards,
    John

  • Calling an external program (*.exe file) on the client

    Hi,
    I use 9iDS and I'd like to call an external program (*.exe file) on the client, but this exe file is located on the server not on the client.
    So it should be something like a mixture between host and client_host(webutil) command. Is it possible to use client_host where a virtual path is passed to?
    Regards Sören

    Are you saying you want to run on the exe on the client but its located on the server???
    In that case you would have to do a webutil file transfer to move it to the client before executing. Or, if you are calling a DLL, webutil will download it automatically from the server to the client (see the C API example on the webutil page).
    Regards
    Grant Ronald
    Forms Product Management

  • How to control (the input and output) EXE file after I call it using exec?

    Hi,
    I knew that I can use runtime.exec() to call one EXE file, and this works. But this EXE has two characteristics:
    1. After this exe starts, it asks user to input number such as 1 or 2 onto computer screen, then press return. Then the exe will start the calculation.
    2. after it starts calculation, it prints 3 columns of numbers onto the screen.
    My two questions are:
    1. How to use java to input the number such as 1 or 2 automatically? this EXE can not work like this in DOS command line:
    C:> file.exe parameter
    The parameter is the number such as 1 or 2 that I wanna input.
    2. how to redirect the 3 columns of numbers from computer screen to txt file?
    My colleague can solve these two questions using Mathematica. So I know that definitely there is at least one solution for it. I just can not do it using Java. This wierd exe file bothered me a lot and I really wish that I can get help from someone in java community.
    Thank you!
    Tony

    When you call Runtime.exec, you get a Process object. (I presume something similar happens when you use ProcessBuilder.) Process has methods with names getOutput, getInput, and getError. These correspond to the standard input, standard output, and standard error streams of the spawned process.
    You can read and write to the process on the streams corresponding to input and output that the process writes to the console.
    [add]
    In fact, you should be grabbing and reading the output/error streams anyway, because of the points raised by the Traps article. Google "Java Runtime exec traps" and you'll probably get a link to this JavaWorld article, which describes common Runtime.exec problems and how to solve them.
    Edited by: paulcw on Jun 15, 2010 4:09 PM

  • Include and call an .exe file inside my jar file

    Hi.
    I want to include an exe file and call it inside my jar file. this is the code.
    InputStream is = getClass().getResourceAsStream("/native/my.exe");
              int[] line = new int[is.available()];
              File myFile = File.createTempFile("my","exe");
              myFile.deleteOnExit();
              myFile.setExecutable(true);
              FileOutputStream out = new FileOutputStream(myFile.getAbsolutePath());
              int i = 0;
              int c;
              while((c=is.read()) != -1){
                   line=c;
                   i++;
              is.close();
              for(int j= 0;j<line.length;j++)
                   out.write(line[j]);
              out.close();
    So i store it in my temp folder. Than i run
    String myFileLocation = myFile.getAbsolutePath();
    p = rt.exec(myFileLocation);
    Everything goes fine, but the behaviour of the .exe file is not the same. I mean when i run the commands
    PrintWriter writer = new PrintWriter(p.getoutputStream());
    writer.println("command");
    the behaviour is not the same. What goes wrong.

    But to load the xml file I need to create a File objectIf this is true then you will not be able to load the XML file, since a jar entry is not a File object and cannot be represented as one.
    However if you get rid of whatever it is that loads your XML file and replace it by more standard JAXP processing, you should be able to parse an InputStream that reads from the jar entry. You know how to get that so it should not be a problem.

  • How do I call another exe file from a Java program?

    Hi,
    I am doing a simple IDE (text editor/interpreter) for a simple programming language we are developing. It will be submitted as our project for this semester. I created an exe file (in C) which will be used as the interpreter. How do I call the interpreter from my IDE? The interpreter should run when the user clicks a button (i.e. the "Run" button). I've tried the Java Runtime class but it doesn't work. Anyone who knows how to do it?
    Thanks!

    I first tried to do a simple program that calls system commands such as dir, cd <dir>, etc.
    I do not have the exact code right now but as far as I can remember, here's what I wrote:
    class Sample{
        public static void main(String args[]) throws IOException{
           BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
           String command;
           while ((command = in.readLine()).equalsIgnoreCase("exit") == false){
              try{
                Runtime.getRuntime().exec(command);
              }catch(Exception e){
                 System.err.println("Error: " + e);
          System.exit(0);
    }

Maybe you are looking for

  • Monitor Capability with 12 inch Powerbook

    Does anyone know if my 12 inch Powerbook will work with this Dell 24" monitor? Dell 24" Wide DVI 6ms 1000:1 500 cd/m² 1920x1200 WUXGA 9-in-2 Card Reader 3-year Advance Exchange 4 USB 2.0 Ports Adjustable Stand Thanks!!

  • How can I add axis to an XY-graph programmatically (in LV 6i)?

    I am currently using LabVIEW 6i to make a flexible graph window, which can be called and controlled from another VI. It's easy to send commands to the graph window over a queue interface (enabling things like adding and removing plots, changing the n

  • Alternative for BW Open HUb Services.

    Hi All, We have recently implemented Open Hub Services solution for our clients, where data is being extracted from BW CUBEs to FLAT FILES. Now we came to know that we need separate License to use Open Hub Services. In the current context it's not po

  • Why does blast internet cost more than the tv/internet

    This is absolutely ridiculous.  I am paying twice as much for twice as less.  I don't have other choices of ISPs in my areas otherwise I'd leave immediately.  I have had constant disconnections with Xfinity several service calls and no resolution.  T

  • Translate Photoshop CS2  in French

    Hello ! I have downloaded PSP free CS2 version in English : how to translate this English version in French Thanks