Is it possible to run a command prompt(or DOS Command) through flash and run a Activex(.OCX) file from flash

Hi all
    Is it possible to run a command prompt(or DOS Command) through flash.If it possible please guide me to do that throug AS 3.0.
   and
Is it Possible to run a activex (.OCX) file from flash. If it is so please guide me the way to do it
Thanks and Advance
Sankar.M.S

Or create a desktop shortcut (in Windows) or an application launcher ( in Linux GUI).

Similar Messages

  • Executing a linux command through flash lite

    Hello All,
    i want to know one thing.. : is it possible to execute a linux command through flash lite?
    I mean, say, in linux at the command prompt if i want to change the date and time then i will execute command date 082110452009.00 to set
    21 August 2009, 11:45:00 .. i want to do this through actionscript2.. first i wil provide a UI asking the user to set date, time, year.. once he clicks OK i want to execute the above command with the user input..
    This is because currently i m running this application on an embedded linux device which doesn't have a real time clock.. i mean once i switch off and ON the device the date and time will set back to default value 01 Jan 1970 as it happens in linux..
    any suggestions?

    get the the inputStream of the runtime object after executing the command.
    now use the readLine() function until it becomes null.
    egs: with reference to ur code.
    InputStream is=p.getInputStream()
    while(is!=null)
    String s=is.readLine();
    if the command don't execute try giving the full path also like /sbin/ls -l

  • How to run an external .exe file from an indesign pluging

    Hi,
          Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
    Thanks,

    I'm actully writing data in PMString to a external txt file.
    another question..
    if i want to execute an action when the ok button is cliked how can i do it?
    whe i add a button(widget) i know how to handle it. please see my code.
    // Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
    CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
    do
    InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
    ASSERT(controlView);
    if(!controlView) {
    break;
    // Get the button ID from the view.
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
             case kEXTCODFindButtonWidgetID:
      this->SaveLog();
      break;
    // TODO: process this
    } while (kFalse);
    I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked...

  • When I update itunes it deletes the library file, and when I restore that file from the previous libraries or my backup, itunes will run but tell me "the iTunes library file cannot be saved. A folder was specified instead of a file" How do I fix this?

    When I update itunes it deletes the library file, and when I restore that file from the previous libraries or my backup, itunes will run but tell me "the iTunes library file cannot be saved. A folder was specified instead of a file" How do I fix this?

    Hi there Br0x,
    You may want to try rebuilding the iTunes library as an initial troubleshooting step. Take a look at the article below for more information.
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    -Griff W.

  • Is it possible to run Add-On application seperately from Windows?

    Hi,
    Is anyone know if it is possible to run the Add-On from Windows with SAP B1 client ? For some reasons, i can't install the Add-On my server now during my development, but i need my QA tester to test these existing finished Add-Ons. Can I just pass all compiled binary files to my tester and let him run the Add-On from his PC and test it in his SAP B1 client? I tried, but it always gives me application crash error. But the add-on runs very well after installed in the the SAP B1 or under visual studio developping mode.
    Thanks,
    Lan

    Hello
    Yes it is possible. You can run the addon the same parameters as you run in the development environment. You can use the same connectionstring used during development.
    1. Copy you addon into a folder
    2. Create a bacth file (start.bat) with notepad, and enter there your addon name and the connectionstring
    3. Run the batch file.
    It will start and connect to sap b1.
    I am also using this method to test the addons .
    Regards
    J

  • How do I run a 10g rep file from the command line, send output to previewer

    Hi Everyone,
    We are migrating from Reports 2.5 to 10g.
    We are creating a batch file to run one of our reports that is in the .rep file format. Can you tell us what we need to put in the batch file to run the report as a paper report and have the reports runtime prompt the user for the login and show the report in the previewer just like in Reports 2.5?
    Thanks.
    Emad

    They should take a look at the "Oracle Application Server - Reports Services - Publishing Reports to the Web" from Application Server Doumentation downloadable from Reports Homepage http://otn.oracle.com/products/reports
    Martin

  • Getting "java.lang.NullPointerException" error message when trying to run an OATS OpenScript file from Eclipse to Create a record in Oracle EBS

    Hello,
    I'm trying to run a simple OpenScript script in Eclipse that creates a record (a Supplier in this case) in Oracle E-Business Suite. So I copied the the script file from OpenScript and created it as a Class in Eclipse.  Then I created a main class to call the methods within the script class but no matter what method I call (initialize, run or finalize) I'm getting the java.lang.NullPointerException message. The error doesn't seem to be related with any specific line in the script but with the way that I'm calling it.
    Should I call the OpenScript class from my main class in a different way? (see my examples below)
    BTW, all external .jar files coming with OATS have been added to my project in Eclipse.
    1) Here's the main class I created to call the OpenScript method (Eclipse auto-corrected my main class adding a Try and Catch around the method call):
    public class Test {
        public static void main(String[] args) {
            nvscript nvs = new nvscript();
            try {
                nvs.initialize();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
    2) Here's the script from OpenScript (the actual script has more steps but I'm just using the first one for a proof of concept):
    import oracle.oats.scripting.modules.basic.api.*;
    import oracle.oats.scripting.modules.browser.api.*;
    import oracle.oats.scripting.modules.functionalTest.api.*;
    import oracle.oats.scripting.modules.utilities.api.*;
    import oracle.oats.scripting.modules.utilities.api.sql.*;
    import oracle.oats.scripting.modules.utilities.api.xml.*;
    import oracle.oats.scripting.modules.utilities.api.file.*;
    import oracle.oats.scripting.modules.webdom.api.*;
    import oracle.oats.scripting.modules.formsFT.api.*;
    import oracle.oats.scripting.modules.applet.api.*;
    public class nvscript extends IteratingVUserScript {
        @ScriptService oracle.oats.scripting.modules.utilities.api.UtilitiesService utilities;
        @ScriptService oracle.oats.scripting.modules.browser.api.BrowserService browser;
        @ScriptService oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService ft;
        @ScriptService oracle.oats.scripting.modules.webdom.api.WebDomService web;
        @ScriptService oracle.oats.scripting.modules.applet.api.AppletService applet;
        @ScriptService oracle.oats.scripting.modules.formsFT.api.FormsService forms;
        public void initialize() throws Exception {
            this.getSettings().set("formsft.useformsonly",true);
            browser.launch();
        public void run() throws Exception {
            beginStep(
                    "[1] E-Business Suite Home Page Redirect (/ebs12cloud.winshuttle.com:8000/)",
                    0);
                web.window(2, "/web:window[@index='0' or @title='about:blank']")
                        .navigate("http://ebs12.xxxxxxx.com:8000/");
                web.window(4, "/web:window[@index='0' or @title='Login']")
                        .waitForPage(null);
                    think(4.969);
                web.textBox(
                        7,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_text[@id='usernameField' or @name='usernameField' or @index='0']")
                        .setText("winshuttle_user");
                    think(2.0);
                web.textBox(
                        8,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                        .click();
                    think(1.109);
                web.textBox(
                        9,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:input_password[@id='passwordField' or @name='passwordField' or @index='0']")
                        .setPassword(deobfuscate("kjhkjhkj=="));
                    think(1.516);
                web.button(
                        10,
                        "/web:window[@index='0' or @title='Login']/web:document[@index='0']/web:form[@id='DefaultFormName' or @name='DefaultFormName' or @index='0']/web:button[@id='SubmitButton' or @value='Login' or @index='0']")
                        .click();
            endStep();
        public void finish() throws Exception {       
    3) Here's the error messages I'm getting based on the method I call from my main class:
    3.a) when calling Initialize():
    java.lang.NullPointerException
        at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.getSettings(IteratingVUserScript.java:723)
        at nvscript.initialize(nvscript.java:22)
        at Test.main(Test.java:9)
    3 b) when calling Run():
    java.lang.NullPointerException
        at oracle.oats.scripting.modules.basic.api.IteratingVUserScript.beginStep(IteratingVUserScript.java:260)
        at nvscript.run(nvscript.java:30)
        at Test.main(Test.java:9)
    Any help and/or constructive comment will be appreciated it.
    Thanks.
    Federico.

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

  • Is it possible to have two USB drives for the IPad?  I want to bring RAW photo files from my camera, through the IPad and back to an external hard drive.  One of my cameras does not use an SD card.  How can I do this?

    Is it possible to have two USB drives for the IPad?  I want to bring RAW files from my camera through the IPad and out to an external hard drive.  One of my cameras has an SD card but the other one doesn't have a card that would fit in any of the camera devices I've seen on line.  Realted to this, I bought the IPad camera accessory.  Can I put the SD card in the device and also hook the external hard drive to the USB port of the accessory and download from the camera to the hard drive?  Can I put Lightroom or the Nikon photo editing software on the IPad?  Right now I carry a PC laptop and external hard drives with me on wildernes trips.  Internet and WiFi are not available.  Because I shoot so many photos and they're in RAW I need to download from the camera to the external drive because I run out of memory on the PC (and it has much more memory than the IPad).  I have Nikon NX software and lightroom on my PC.  I'd love to be able to reduce the weight I carry by using the IPad to edit my photos each night while on trips.  Is this possible and how would I do it?  I'd appreciate any guidance.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • Iam not able to run a simple batch file from within java

    This is how my code looks like.
    It does'nt give me any error but I dont see the output from batch file which is suposed to be a simple redirection of dir command...
    package mypackage1;
    import java.io.File;
    public class RunBatch
    public RunBatch()
    try{
    Runtime rt = Runtime.getRuntime();
    String cmd = "generate_invoice";
    String path = "C:\\application\\Maps\\Reports";
    File file = new File(path);
    String[] envp = {""};
    String[] args = {"C:\\application\\Maps\\Reports\\generate_invoice.bat"};
    System.out.println("************ executing batch ");
    Process proc = rt.exec(args);
    System.out.println("************ batch executed ");
    }catch(Exception e)
    e.printStackTrace();
    * @param args
    public static void main(String[] args)
    RunBatch runBatch = new RunBatch();
    }

    Runtime.exec() only can run executable files. Batch file is not an executable - it is a script executed by command interpreter (cmd.exe). So, you should execute "c:\windows\system32\cmd.exe /c C:\application\Maps\Reports\generate_invoice.bat".
    Denis
    http://www.excelsior-usa.com/jet.html
    JVM with AOT compilation

  • How to run Executables or .bat files from Java?

    Hi!
    I need to open a Web Browser from Java App.
    Please, help me to do this without calling JNI
    -or-
    provide me with sample which works with
    Runtime.execute() method.
    I have done full permission:
    grant
         permission java.security.AllPermission "","";
    };Thank You in advance!

    To run any command from java code, the method is
    Runtime.getRuntime().exec( myCommandString )
    Where, myCommandString is something like "/full/pathname/command".
    If the pathname contains spaces, e.g. "c:\program files\windows\notepad", then enclose it in quotes within the quoted string. Or pre-tokenize them into elements of an array and call exec(String[] cmd) instead of exec(String cmd).
    From JDK1.3 there are two new overloaded Runtime.exec() methods. These allow you to specify starting directory for the child process.
    Note, there is a gotcha associated with reading output from commands. When the runtime exec's the process, it passes to it 3 streams, for stdin, stdout, and stderr; the out and err are buffered but the buffer size isn't very big. When your process runs, it reads (if needed) from in, and writes to out and err.
    If it doesn't write more than the buffer-size, it can run to completion.
    But if it tries to write more data to one or the other stream than the buffer can hold, the write blocks, and your process hangs, waiting for you to empty the buffer so it can write some more.
    So after the exec call, get the streams, and read from them in a loop until they both hit end-of-stream (don't block on either one, just read whatever is available from each, each loop iteration).
    Then when the streams have ended, call the process.waitFor() method to let it finish dying.
    Now, here is a code snippet how you achieve this.
    String strCommand = "cmd.exe /c " + strCommand;
    boolean bWait = true;
    //execute the command
    try
         Runtime r = Runtime.getRuntime();
         Process pr = r.exec(strCommand);
         Process pr = r.exec(callAndArgs);
         BufferedInputStream bis =new BufferedInputStream(pr.getInputStream ());
         int c=0;
         /** Outlet for IO for the process **/
         while (c!=-1)
              c=bis.read();
         /**Now wait for the process to get finished **/
         if(bWait == true)
              pr.waitFor();
              pr.destroy();
    catch(Exception e)
         System.out.println("Could not execute process " + strCommand);
         return(false);

  • Running a specific SWF file from a certain URL

    I need to run my Flex SWF from a URL like this:
    http://www.somthing.com/applicationName
    Where "applicationName" can be anything we predefine and it
    can be passed to the Flex SWF so we can determine which application
    the user wants to run. How can we do this?

    Let me see if I can get this one right.. "applicationName"
    would be a directory, so you'd have to do this for any and all
    seperate application directories. To at least make an index.cfm for
    each that would relocate the user to a central directory point.
    Then maybe this central application directory point would have an
    index.cfm that would extract the "applicationName" from the referer
    url which it would use in some way with parameterize values in the
    Flash object code inclusion to get and serve the appropriate swf
    file.
    Trying to explain it is more complicated than actually doing
    it.

  • Is it possible to run the Windows XP environment from an external HD?

    I just purchased a MacBook Pro and need to run navigation/mapping applications written for windows only. I would rather not fill up the internal HD with XP and associated Apps.
    Is it possible to install bootcamp or VM Fusion etc, Win XP and associated apps and run them on an external usb drive connected to my MacBook Pro?
    TIA

    BootCamp Discussion:
    http://discussions.apple.com/category.jspa?categoryID=237
    This is the workstation Mac Pro, not MacBook series.
    If you want Windows installed natively on its own partition, you can't use external USB or FW or eSATA, must be internal.
    A virtual machine and its associated disk file image that is used in OS X can be anywhere you want.
    Fusion supports BootCamp partitions, but isn't req'd.
    http://communities.vmware.com/community/vmtn/desktop/fusion

  • Is it possible to run 2 different reports SEPARATELY from a single query?

    Dear All,
    The title to my previous thread seems to be inaccurate and misleading.
    To encourage people to read it, I am giving it a more appropriate Title.
    Please do not reply on this thread, but refer to the original one.
    Thanks
    Leon Lai
    Here's the link:
    Is it possible to combine 2 different reports in a single Query?

    Dear All,
    The title to my previous thread seems to be inaccurate and misleading.
    To encourage people to read it, I am giving it a more appropriate Title.
    Please do not reply on this thread, but refer to the original one.
    Thanks
    Leon Lai
    Here's the link:
    Is it possible to combine 2 different reports in a single Query?

  • Is it possible to run the Process Application task from DM or SSIS ???

    As the title says (and further to yesterday's SSIS question).
    I need to automate the task of processing applications, but currently only have the option of opening Admin Manager -> Applications -> Tick "Process Application" -> Modify Application.
    When I try to setup an SSIS package to run the process, it only runs for 2.5 minutes and doesn't rebuild the dependencies on the DB tables that are dropped as part of a full optimize.
    However, when I run the job as shown above (in Admin Mgr), it takes 11 minutes and works perfectly.
    Therefore, as it is a simple tick-box to run the processing, there must be one or more jobs at the back-end that are run by ticking it.
    So I need to know how to call the job(s) in question either from SSIS or from Data Manager, so that I can schedule it.
    Thanks
    Craig

    Thanks James.
    I just added the AdminTask_Process package from the samples to my AppSet, but it failed again.
    It ran in 147 seconds (2.5 minutes again), and failed to rebuild any of the dependencies on the FACT tables.
    When I run "Process Application" from Admin Manager, it takes just over 10 minutes and rebuilds the dependencies correctly.
    Do you have any other suggestions as to how I can run the full sequence of application processing that happens when I use the Admin Manager ???
    Cheers
    Craig

  • How can i run a java class file from shell?

    Hi all,
    I've a .class file named "File" that contains Main method, it is in the package "File2".
    How can I run it by shell command?
    PS: "java -cp . file" doesn't work it launch->
    Exception in thread "main" java.lang.NoClassDefFoundError: File2/File (wrong name: File2/File)
    Thanks in advance.

    Just to understand: is File2 ar jar archive or not? If it is a jar archive, have you tried open File2.jar? If File2 is a directory within the current directory, have you tried java -cp . File2/File? I just tested with a set of classes and it works... Let me be precise:
    * Let us imagine you are working in a directory whole path is PathToDir/
    * in this directory you have the classes put in a directory called File2
    * in order to launch File.class then you would have to invoke :
    cd PathToDir/ (just to be sure)
    java -cp . File2/File
    *if you were to do the following then you would have the problem you describe
    cd PathToDir/File2/
    java -cp . File

Maybe you are looking for

  • How do I tell if my mac book air will run mountain lion?

    I've seen it asked a lot of times.  I've seen the same answer every time, which is "so long as it's a late 2008 model" My macbook air is silver... it says "macbook air" on it... I bought it once upon a time... it is running leopard... it does not app

  • How to deactivate  ADOBE ACROBAT 9 STANDARD LICENCE ON PC FOR REINSTALLATION OF WINDOWS

    I am having Adobe Acrobat 9 Standard installed in my Dell Inspiron 2310 pc.  Due to some issue, Dell advice me to take up back up of all, for windows reinstallation. I am having window 7- 64 bit. I am having  Original CD with product Key number with

  • Report  showing the open Purchase orders

    Hi Experts,            Is there any standard report to view the open Purchase orders. Developing a new report is the only solution. Thanks

  • Error using conditional branch node in OSB

    Hi, We are using Oracle Service Bus in our project. I have created the following steps in the OSB Proxy Service: 1) Assigning a value in a variable inside a request pipeline. 2) I am using a Conditional Branch after the pipelined pair. The branching

  • Deprecated api in 1.2.1

    compiling samp10.java samp10.java:32: Note: The method java.net.URL createURL(java.lang.String) in class oracle.xml.sql.dml.OracleXMLSave has been deprecated. URL url = sav.createURL(fileName); ^ Note: samp10.java uses a deprecated API. Please consul