Starting an external .exe application from within Visual Basic

How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
Thanks in advance
Big Buzzard
Philippe de Marchin

How do I start an external .exe appliction from within Visual Basic. for example start Internet Explorer or FireFox?
If you know the path and filename of the application, or if it is an application that the operating system will find for you, then you can pass the application details to the Start method of the Process class.   If you don't know the path and filename
of the application - for instance you want to start the user's web browser but it might be IE or Firefox or something else, then the argument to the Start method can be of any file type for which the extension has been associated with an application installed
on the system. 
https://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.110).aspx

Similar Messages

  • Accessing The Names in the Data Neighborhood From Within Visual Basic

    I would like to have my application get the names that are listed in the Measurement & Automation Data Neighborhood.

    There is not a function for this exposed in the ActiveX controls. I do have a utility DLL that should do it for you. There are two functions you will use in this DLL:
    int GetNumberOfChannels(long* num);
    int GetChannelNameByIndex(long index, char* nameBuffer, long* bufferSize);
    The first fucntion returns the number of virtual channels and the second function retrieves the name and name length of a specific channel by index. They are written in C style so they can be used from any compiler.
    If you have questions about this DLL, you can post them here.
    Best Regards,
    Chris Matthews
    National Instruments
    Attachments:
    scaleAccess.dll ‏48 KB
    scaleAccess.h ‏2 KB

  • Start a WS application from within a java program

    Hi,
    I need to start a WebStart application from within a java program. Therefore I develeoped a class which starts javaws.exe within its main-method like this:
    try {
    Runtime.getRuntime().exec(
    "c:\\java web start\\javaws.exe http://a.b/c.jnlp"
    } catch (Exception e) {
    e.printStackTrace();
    And that did not work. Java Web Start tries to start the .jnlp program but returns with the message, that the app-desc|applet-desc|installer-desc|component-desc is missing. But it is there: It is an applet and thus I defined an applet-dec.
    I tried to do it from a command line with the followinf command:
    java -Djnlpx.home="C:\abc" -cp "C:\abc\javaws.jar" com.sun.javaws.Main http://a.b/c.jnlp
    And that works. But using this command from within my jjava prog using the Runtime.exec() method does not work.
    By the way, simply type "javaws http://a.b/c.jnlp" at the command line does not work.
    Can anybody help me? How may I start a .jnlp program within another java program.
    Kind Regards,
    Tobias Neubert

    Hi,
    I recently had a quite similar problem. At least the error message by the Java Web Start application on Mac OS X complained about the same error (app-desc|applet-desc|installer-desc|component-desc). It turned out to be some bad invisible characters in the jnlp file. I copied some sample from a web page which for some reason contained some unicode chars that the parser doesn't like. Use a different text editor or the less command on unix to see if there are some strange characters in you jnlp file.
    But it seems strange that it does work from the command line and not from your code.
    -Stefan

  • Can you Launch External Applications From Within InDesign Ebook?

    Hi all,
    I was wondering if it is possible to open an external application from within an ebook (created with InDesign) e.g. click on a link and have an external ssh client open up for instance?
    Thanks in advance for any advice.
    Regards,
    RG

    It's possible to include hyperlinks in an InDesign file and export them in an EPUB file. Since I'm not familiar with working with SSH clients (in fact, I just had to Google it to have a clue what you're talking about), is this something that can be invoked in a standard URL format? If so, you could probably include it.
    The next issue is whether the link would work. The link couldn't be used directly in any eBook reader I know of, but at least the iBook on an iPad or iPhone would switch to to Safari to let you follow a URL to its destination. But I don't think that's possible on most eBooks.

  • How do I start and suspend Java Application from say C++ program

    I want to start a Java application via C++ and on some condition i want to suspend the same program not terminate , but suspend

    Have you tried running the virtual machine from your C++ application ? You can start Java applications from your C++ application using JNI after starting the Virtual machine from within your C++ application. According to the Java documentation you can even now stop the virtual machine from within your C++ program.
    I haven't looked at the 'suspend' detail but I suppose it will not be a problem to call a method via JNI to set a flag to suspend a thread etc.
    There is a tutorial: 'Invoking the Java Virtual Machine' at the following URL: http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
    This example seems to work only for version1.1 of the JDK. For JDK1.3, version 1.2, (I am not so sure whether I fully understand Sun's version numbers for Java yet) there is some updates on the JNI for starting the VM from C++. This article is called 'JNI Enhancements'. The URL for this article is:
    http://java.sun.com/j2se/1.3.0/docs/guide/jni/jni-12.html
    You have to set version to: JNI_VERSION_1_2
    There is only one problem. I get an error when calling JNI_CreateJavaVM from C++. I could not find any documentation that indicates how you can go about diagnosing what is causing the problem. Normally in Visual C++ you can just get the probable cause by inspecting GetLastError() or the function itself can return helpful diagnostic (error) codes.
    If you manage to start the VM correctly from within Visual C++ please let me know. My email address is [email protected]
    good luck
    Henko

  • 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...

  • To contact 3rd party application from within EJB container

    What are the possible options to communicate with an external application from within EJB container? Options that I can think of are
    - RMI
    - JMS
    - Socket communication
    - HTTP
    - any other option???
    And if anyone can give the pros & cons of the different approaches, based on their experiences it will be great.

    Hi,
    There is one more.
    Web Services which is much powerful than any other.
    Ofcourse for this also u have to use socket communication and http protocol.
    SOAP(Simple Object Access Protocol).. I think u got it..
    I prefer SOAP as it has many adavantages over RMI and other.
    Thanks,
    All the best.
    What are the possible options to communicate with an
    external application from within EJB container?
    Options that I can think of are
    - RMI
    - JMS
    - Socket communication
    - HTTP
    - any other option???
    And if anyone can give the pros & cons of the
    different approaches, based on their experiences it
    will be great.

  • Changing state of application from within a custom component

    Hello, I have several custom components all of which are included in the parent application.
    When I try to change state from a custom component, I get an error  saying "undefined state: state name". How do I change the state of the  application from within a custom component ? All the states are defined in the parent application.

    @linrsvp,
    If you are using Flex3 try Application.application.currentState = "somestate";
    If you are using Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate";
    Don't forget to import the corresponding namespaces for the above.
    Thanks,
    Bhasker

  • Can you call external exe file from Flex Air Application like notepad.exe

    Im trying to make my Air Application open an External exe file anyone know if this can be done?

    Hi,
    If you want to share code between a flex app and AIR, you
    could isolate the common bits as a swc file and link to the swc
    from both the flex and air project.
    Also, you could have the flex mxml file and air mxml file
    load the same module (which has the same stuff as your original
    flex application) using ModuleLoader.
    Or, you could even load the swf of your flex application
    using SWFLoader in your air mxml file.
    Basically, check out creating flex libraries, modules and
    runtime loading of swfs.

  • Calling external applications from within a script.

    Whenever I write scripts that require some external application for functionality, I try to open a pipe or start a server so that I only have to start the external application once. I expect that to reduce overhead and consider it good form. However, sometimes there just isn't any way to avoid calling an external application multiple times and when that happens, I try to find some other workaround if I think it's going to get called repeatedly.
    What I'm wondering is how much it really matters for very small and simple programs. The one I have in mind right now is "du". I need to use it in a Perl script because Perl's operators to get file sizes return the apparent size which, in this case, is much larger than the actual size reported back by "du". I'm monitoring the size of files in real-time and I need to call "du" during each iteration of the status updater. Even though I'm passing all the file paths at once, "du" may be called a few times every second (well, I could limit it to once a second).
    Could this possibly make any noticeable different on older machines? In general, what external apps can you get away with calling repeatedly?

    I'm not sure, but I thing that overhead caused by calling du cannot be big enough to matter even on older machines.
    But, when calling du from Perl script you are also invoking shell, and this can be a little bit more 'heavy'.

  • What is the best process for creating, opening, editing, etc PDFs from within Visual Studio 2008?

    I am the project manager on a web-based application that will need to:
    Create, open, edit, save, etc PDFs from within a Visual Studio 2008 web application (Visual Basic).
    Populate PDFs from SQL server 2010 database.
    Allow users to use PDF editing tools from within the website.
    BTW, the application is being written in Visual Basic.
    Will the SDK allow us to do this? What licenses do we need to purchase?
    Are there 3rd party plugins that make doing these things much faster and simpler?
    Any input is GREATLY appreciated!!!
    Sincerely,
    Mike

    I don't think Acrobat, or the Acrobat SDK can help you. Acrobat cannot be run on a server.

  • Help needed with process to call an external web service from within ABAP

    Hello,
    I have an understanding of how I can provision web service from within SAP so that it can be consumed by external apps.
    Now, I am in need to know the, how I can call an external non-sap web service (let's say a java application) or even a public domain web service for that matter:
    Is there any lay man's guide out there? which will list following step:
    A sample ABAP program calling an external web service
    List of all the configurations needed within SAP to make this happen (calling an external web service).
    Any help will be greatly appreciated.

    Hi Matesh,
    Please use the following command in Google : site:sdn.sap.com abap consuming web service
    There is many samples of your needs on SDN.
    Like this one :
    http://wiki.sdn.sap.com/wiki/display/Snippets/WebServiceconsumerusingABAP-PROXY
    Regards, Gilles.

  • Run external exe program from APEX button

    Hi,
    I want to run external programs like EXCEL or Word called from an APEX button.
    Does anyone hav an idea?
    Regards,
    Siegwin

    Hi Siegwin,
    To my knowledge, there are two possibilities running apps on the client side: Either user IE with ActiveX or create your own browser and deploy it with the application.
    I did this using the WebKit browser which comes free with the Qute-Framework. It works very well, the only thing I need to do is create a link that starts with os:// to start an external application and hand parameters over. The browser is a minimal browser component, strong enough to run Flash and enabled to interact with the local computer. Deployment of this C++ application is a simple copy to a network device. This approach gave me piece of mind in regard to compatibility issues as well. The browser is a simple window that even don't allow for direct address entering, therefore the Apex-application looks like a normal application then and is unable to connect to any other internet resource other than the APEX applicaiton itself.
    To the others moaning about this security whole: There are situations where you need something like this, fi in intranet environments where you want to enable APEX to interact with the local environment. So I think it's a valid request.
    Best regards,
    Jürgen

  • Stop/Start service of Ear application from Jboss AS using JMX Mbean API.

    Hi Frendz,
    Please help me on this issue :)
    I would like to stop/start my ear applcation from JMX Client which is deployed on jboss server 4.2.0.
    Code:
    ObjectName name = new ObjectName("jboss.j2ee:service=EARDeployment,url='rr-jms-ejb3.ear' ");
    MBeanServerConnection connection = (MBeanServerConnection) ctx.lookup(invoker);
    connection.invoke(name, "stop", null, null);
    I can see the status(stared/stopped) on JMX Console based on my operation(stop/start).
    But my application is always running irrespective of operation i have provided to invoke method.
    My ear has both web and ejb modules and i would like to stop both modules services.
    Any idea? ...please help me on this.
    Cheers,
    Cap

    wow, you waited all of half an hour before becoming inpatient when noone dropped what they were doing to come at your beg and call?

  • Calling a java application from within another class

    I have written a working java application that accepts command line parameters through public static void main(String[] args) {} method.
    I'm using webMethods and I need to call myapplication from within a java class created in webMethods.
    I know I have to extend my application class within the webMethods class but I do not understand how to pass the parameters.
    What would the syntax look like?
    Thanks in advance!

    why do you want to call the second class by its main method ??
    Why not have another static method with a meaningfull name and well defined parameters ?
    main is used by the jvm as an entry point in your app. it is not really meant for two java applications to communicate with each other but main and the code is not really readable.
    Have a look at his sample
    double myBalance = Account.getBalance(myAccountId);
    here Account is a class with a static method getBalance which return the balance of the account id you passed.
    and now see this one, here Account has a main method which is implemented to call getBalance.
    String[] args = new String[1];
    args[0] = myAccountId;
    Account.main(args);
    the problem with the code above is
    main doesn't return anything so calling it does do much good. two the code is highly unreadable because no one know what does the main do... unlike the sample before this one where the function name getBalance clearly told what is the function doing without any additional comments.
    hope this helps.... let me know if you need any additional help.
    regards,
    Abhishek.

Maybe you are looking for

  • How can I get a Distiller dialog box in Illustrator CS5 which is exactly the same as Distiller?

    I would like to know if there is some type of plug-in, etc. out there that would allow me to have all the functionality of a Distiller dialog box when I save a PDF out of Illustrator CS5. Right now, I just have what comes installed with Illustrator.

  • Help, someone!  I just sent away for a replacement battery for my Ipod Mini

    and it's working well now. I was wrong. What can I do? Can I call Apple and cancel my order? What happened was that over the last few weeks, I noticed that the battery was not working well.... I was charging the Ipod like normal.... 4 hours or so...

  • MobileMe uploads of photos are not of good quality.

    When I upload images from Aperture 3 to MobileMe Gallery the image quality is poor, yet the pictures I have are awesome. How can I improve the quality of images posted to my MobileMe Gallery?

  • Possible to compress a selection?

    I'm trying to help someone who will be dealing with many videos, where she wants to define many clips in each video, and then have them individually handed off to Compressor for compression. Her experience so far is that the entire file is compressed

  • Acquisition of data serial

    Hello, I would like an information about LabView. I need to monitore a serial line through the C-rio and to convert this digital sign in a binary number or hexadecimal. To convert the digital sign for binario, it's necessary store the frames in a vec