How to close the window openned by System Exec VI automatica​lly?

Hello,
I am using System Exec VI to lauch an exe file built from a LabVIEW program. When running System Exec VI, the window of exe file pop out and stays there even after all tasks are completed. I have to close it every time manually. Anyone here know how to close the exe file window automatically when it's done?
Thanks,
Jean
Message Edited by Jean_CLD on 03-25-2010 11:25 AM
Message Edited by Jean_CLD on 03-25-2010 11:29 AM
Solved!
Go to Solution.

If I understand the question correctly you need to add an invoke node at the end of your application to exit. Depending on the whether it is running as a stand alone application or within LabVIEW it will either exit or stop execution. I've attached the VI I use in my applications.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Attachments:
Exit application.vi ‏13 KB

Similar Messages

  • When I try to open Firefox, a pop up says it is already running and I must close a window or restart. I can not figure out how to close the window they are asking me to.

    when I try to start Firefox, a pop up says it is already running and I must close a window or restart. I can not figure out what window they want me to close
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; MDDC; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

    See http://kb.mozillazine.org/Firefox_hangs and [[Firefox hangs]] (Hang at exit)
    Check in the Task Manager (XP: Ctrl+Alt+Del, Vista: Shift+Ctrl+ESC, Processes tab) if there are hanging Firefox processes.
    If you see any ''firefox.exe'' processes then click the End button to end those Firefox processes.
    You can only start Firefox in [[Safe mode]] or launch the [[Managing profiles|Profile Manager]] is all Firefox processes are ended.
    See also http://kb.mozillazine.org/Kill_application

  • How to get the window.opener object into a model window

    Hi,
    I m opening a new popup window with the help of window.showModalDialog(url,self,''). Now i want to access the opner window inside this popup window. Since this showModalDialog does not support window.opener so i passed 'self' as parameter and if i want to access the parent window i can access it with the help of window.dialogArguments . But the problem is window.dialogArguments is not an object .
    for e.g.
    var caller = window.opener
    then caller can be used as object but if i do like this
    var caller = window.dialogArguments
    then i can't use caller as an object.
    Can anybody tell me the correct way.
    manish

    Hi Manish,
    I'm trying to use as well showModalDialog in IE and in the same time have a similar experience in other browsers (like Firefox) - similar to the Hotmail Empty Junk mail button, so here is a piece of code you might be interested in:
      Caller page
      // showModalDialog for Non-IE browsers
      if (!window.showModalDialog) {
        window.showModalDialog = function(sUrl, vArguments, sFeatures) {
          var wFeatures   = sFeatures.replace(/dialog/gi,"").replace(/:/gi,"=").replace(/;/gi,",");  // plus a little more replacement
          var modalWindow = window.open (sUrl, "_blank", wFeatures);
          modalWindow.setFocusToWindow = function () {
            modalWindow.focus();
          modalWindow.setInterval ("setFocusToWindow()", 100);
      // Show modal dialog...
      window.showModalDialog ("modal_dialog.html", self, "dialogHeight: 300px; dialogWidth: 400px; center: yes; help: no; status: no")
      modal_dialog.html
      // IE only - other browsers will be fine
      if (window.dialogArguments) {
        window.opener = window.dialogArguments;
      // Write something back in the opener window
      window.opener.document.write ("here you go...");

  • How to close ie window?

    hi,
    i need to write a program that could open and close a particular url in ie browser for a particular number of times. i could open the browser using following code
    cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    Process p = Runtime.getRuntime().exec(cmd);but i could not find how to close the window - please help

    p.destroy()... but how do you decide when to destroy the process -- are you using a timer or whuh?
    By the way, if you just want to open a browser in a platform independent way, you could try the new Desktop [browse |http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html#browse(java.net.URI)] method.

  • How can i let my java application closes the other opened windows

    how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance

    you'll have to use JNI to access the windowAPI
    then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
    somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
    regards
    Spieler

  • How to close the adobe forms in popup windows once.

    hi,expert..
    i show a adobe form in a popup windows in my webdynpro program...but i find out that i at least click twice on the "CLOSE" button on the right top of the window.....how can i modify my program to  close the window once..
    the original codes are as follow:
    method onactionprint .
       data lo_nd_zhrhap_vp_app_01 type ref to if_wd_context_node.
      data lo_nd_zhrhap_t_document type ref to if_wd_context_node.
      data lt_zhrhap_t_document type wd_this->elements_zhrhap_t_document.
      lo_nd_zhrhap_vp_app_01 = wd_context->get_child_node( name =
    wd_this->wdctx_zhrhap_vp_app_01 ).
      lo_nd_zhrhap_t_document = lo_nd_zhrhap_vp_app_01->get_child_node(
    name = wd_this->wdctx_zhrhap_t_document ).
      lo_nd_zhrhap_t_document->get_static_attributes_table(
        importing
          table = lt_zhrhap_t_document ).
    DATA lo_nd_zhrhap_s_app_leader TYPE REF TO if_wd_context_node.
    DATA lo_el_zhrhap_s_app_leader TYPE REF TO if_wd_context_element.
       data ls_zhrhap_s_app_leader type
    wd_this->element_zhrhap_s_app_leader.
    lo_nd_zhrhap_s_app_leader = lo_nd_zhrhap_vp_app_01->get_child_node(
    *name = wd_this->wdctx_zhrhap_s_app_leader ).
    lo_el_zhrhap_s_app_leader = lo_nd_zhrhap_s_app_leader->get_element(
    lo_el_zhrhap_s_app_leader->get_static_attributes(
       IMPORTING
         static_attributes = ls_zhrhap_s_app_leader ).
    DATA lo_nd_zhrhap_s_dates TYPE REF TO if_wd_context_node.
    DATA lo_el_zhrhap_s_dates TYPE REF TO if_wd_context_element.
       data ls_zhrhap_s_dates type wd_this->element_zhrhap_s_dates.
    lo_nd_zhrhap_s_dates = lo_nd_zhrhap_vp_app_01->get_child_node( name
    *= wd_this->wdctx_zhrhap_s_dates ).
    lo_el_zhrhap_s_dates = lo_nd_zhrhap_s_dates->get_element(  ).
    lo_el_zhrhap_s_dates->get_static_attributes(
       IMPORTING
         static_attributes = ls_zhrhap_s_dates ).
    采集表名称和日期
      data lo_nd_if_data type ref to if_wd_context_node.
      data lo_el_if_data type ref to if_wd_context_element.
      data ls_if_data type wd_this->element_if_data.
      lo_nd_if_data = wd_context->get_child_node( name =
    wd_this->wdctx_if_data ).
      lo_el_if_data = lo_nd_if_data->get_element(  ).
      lo_el_if_data->get_static_attributes(
        importing
          static_attributes = ls_if_data ).
      ls_zhrhap_s_dates-valid_begda = ls_if_data-begda.
      ls_zhrhap_s_dates-valid_endda = ls_if_data-endda.
    DATA lo_el_zhrhap_vp_app_01 TYPE REF TO if_wd_context_element.
       data ls_zhrhap_vp_app_01 type wd_this->element_zhrhap_vp_app_01.
       data lv_description like ls_zhrhap_vp_app_01-description.
    lo_el_zhrhap_vp_app_01 = lo_nd_zhrhap_vp_app_01->get_element(  ).
    lo_el_zhrhap_vp_app_01->get_attribute(
       EXPORTING
         name =  `DESCRIPTION`
       IMPORTING
         value = lv_description ).
    REPLACE ALL OCCURRENCES OF '类别:' in lv_description with ''.
      lv_description = ls_if_data-stext.
      data l_is_ok    type boole_d.
      data pdf_source type xstring.
      data l_msg      type ref to cl_hrpa_message_list.
      create object l_msg.
      call method zcl_hr_appraisal_utility=>print_contract_direct
        exporting
        form_type           = 'COD'
          zhrhap_t_document   = lt_zhrhap_t_document
          zhrhap_s_dates      = ls_zhrhap_s_dates
          zhrhap_s_app_leader = ls_zhrhap_s_app_leader
          description         = lv_description
        job_description     =
          message_handler     = l_msg
         importing
          is_ok               = l_is_ok
          pdf_xstring         = pdf_source
      check l_is_ok is not initial and pdf_source is not initial.
      data lo_nd_pdf type ref to if_wd_context_node.
      data lo_el_pdf type ref to if_wd_context_element.
      data ls_pdf type wd_this->element_pdf.
      data lv_source like ls_pdf-source.
      lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
      lo_el_pdf = lo_nd_pdf->get_element(  ).
      lo_el_pdf->set_attribute(
        exporting
          name =  `SOURCE`
          value = pdf_source ).
    *-->ADOBE View embeded to ViewContainer UI
      data: lr_view               type ref to if_wd_view_controller,
            lr_api_main           type ref to if_wd_component,
            lr_window_man         type ref to if_wd_window_manager,
            comp_usage            type ref to if_wd_component_usage,
            l_title               type string value '打印合同',
            lr_window             type ref to if_wd_window.
      lr_view = wd_this->wd_get_api( ).
      lr_api_main = wd_comp_controller->wd_get_api( ).
      lr_window_man = lr_api_main->get_window_manager( ).
    l_title = wd_colr_mp_controller->model->get_text( '006' ).
      call method lr_window_man->create_window
        exporting
          modal        = abap_true
          window_name  = 'POPUP'
          title        = l_title
          button_kind  = if_wd_window=>co_buttons_yesno
         message_type = if_wd_window=>co_msg_type_none
          default_button = if_wd_window=>co_button_yes
        receiving
          window       = lr_window.
      lr_window->open( ).
    endmethod.
    looking forward to your help....thanks in advance

    Ping,
    1st, see the Markup formatting options over on the right part of the screen - if you wrap your code between the code tags it will read MUCH better.
    2nd, I can't replicate this issue - we have several PDFs opening in new windows & we only need to click once on the clost 'X' - how are you calling the PDF in a new window?
    If you can't find a final resolution, an alternative would be to place a LinktoAction on your web dynpro application somewhere that makes sense which would close the window for you.
    We do this on Sucess Message Views...
    You can simply add the link to action to the screen, and in the event handler use
       data : l_view_cntr type ref to if_wd_view_controller,
           l_win_cntr  type ref to if_wd_window_controller,
           l_window    type ref to if_wd_window,
           l_parameter_list  type wdr_event_parameter_list,
           l_parameter       type   wdr_event_parameter,
           l_val type ref to data.
    field-symbols <fs> type any.
    l_view_cntr = wd_this->wd_get_api( ).
    l_win_cntr  = l_view_cntr->get_embedding_window_ctlr( ).
    l_parameter-name = 'CLOSE_WINDOW'.
    create data l_val type c.
    assign l_val->* to <fs>.
    <fs> = 'X'.
    l_parameter-value = l_val.
    insert l_parameter into table l_parameter_list.
    l_win_cntr->if_wd_view_controller~fire_plug(
    exporting plug_name = 'EXIT_PLUG'
               parameters = l_parameter_list ).
    Make sure you have an Exit plug on your Window with Plug Type EXIT.

  • I downloads the latest iTunes software update and it properly installed.  But,  I cannot close the window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the

    I downloaded the latest iTunes software update and it properly installed.  But,  I cannot close the update window showing it was completed and the blue completion bar is full but cannot cancel or close it either.  Any ideas on how to clear that out and close the window.  Tried to quit on both the big window and the software update title in the menu bar.  No luck.

    Tried that by shutting down via the power button only as the normal shutdown was nixed by the open window issue.  It did not help.  Found a very similar question in the discussions and it recommended "Force Quit".  That worked and the update works normal and the window is gone.  Thanks!

  • How to close and re-open the browser

    I have just downloaded a program and to fully install it it is requesting that I close the browser and re-open it. I don't know how to close and re-open the browser. Can you tell me how to close and re-open the browser? Thank you

    It is always best to use File > Exit<br />
    That will close all open windows, so if there are still other windows open then these won't close if you use the close X on the title bar.
    Also make sure that you do not have security software that is locking files in the Firefox program folder.

  • Firefox stopped working on my computer yesterday afternoon. I have the Windows 7 operating system. It wouldn't open, so I updated Firefox and it still won't open. What's the problem?

    I used Firefox yesterday morning and it worked fine. I went back to my computer yesterday afternoon and Firefox wouldn't open. I've tried everything. I even updated Firefox. But it still won't open. I have the Windows 7 operating system. Is there a compatibility issue? Internet Explorer works fine. But I prefer Firefox. Please let me know what I can do to fix the problem. Thanks.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

  • How can avoid to close the window?

    My problem is that when user decides to close a window, system should ask conferm to that action, if user responds no, the window should stay, vice versa window should be closed if user conferm closing.
    Ok my code:
    void this_internalFrameClosing(InternalFrameEvent e) {
    int r;
    this.setClosable(false);
    JOptionPane dlg = new JOptionPane();
    r = dlg.showConfirmDialog(this,"Are you sure to quit?","Quit?",dlg.YES_NO_OPTION);
    if (r == dlg.YES_OPTION) {
    this.setClosable(true);
    doesn't work. How can I cancel closing of the window, because window will be closed anyway!

    This will prevent your internal frame from closing:
    frame.setDefaultCloseOperation(JInternalFrame.DO_NOTHING_ON_CLOSE);
    Then you have to define your closing logic in the internalFrameClosing() method of InternalFrameListener. Be sure to close the window manually using frame.dispose().

  • Firefox won't open a message tells me it is all ready running I need to close the window to open firefox. Firefox is not open so why do I get this message

    When I try to open firefox a box opens up and tells me firefox is already running in another window and I need to close the window if I want to open firefox in a new window. Firefox is already closed, nothing is left open when I close out firefox. I would only have this problem once in a while but now it is happening more often why?

    Open Task Manager and click on the Processes tab. Scroll down to "Firefox.exe" , click on that line and click on "End Process" button.

  • How can I turn back the suggest option on iTunes when I purchase a song? somehow I close the window and now it doesn't come up

    how can I turn back the suggest option when I purchase a song? somehow I close the window that suggest the song similar to what we purchase on itunes

    NVM!!! Everything is strangely fine now!

  • I'm using tweetdeck to open links but after i update to 14.0.1 version, the window open or pop out every single time when I open the links, how can i do?

    I'm using tweetdeck to open links , I can click on tons of link I want to open without the firefox window pop up but after i update to 14.0.1 version, the window open or pop out every single time when I open the link, how can I just open the link but not the window?

    yesssssss , EXACTLY !!!! before the update ,whenever I open an external link, Tweetdeck used to stay in front, and now Firefox moves in front of Tweetdeck<<<< EXACTLY !!!

  • How to close the main window  from Popup

    hello all,
    i need to close the main window from a popup, so i create a popup and after clicking on close button of this popup, should also the main window be closed.
    how can do this please?
    BR

    Hi
    Please go through this.. check thomas reply
    Re: Close Main Window directly on action on Pop up window
    also check this..
    how to close main window on click of a button on popup window
    cheers,
    Kris.
    Edited by: kissnas on May 12, 2011 5:06 PM

  • HOW to reset the windows system on my macbook?

    I WANNA TO KNOW HOW TO RESET THE WINDOWS SYSTEM ON MY MACBOOK.
    IT'S DUAL SYSTEM.  WINDOWS AND MAC.
    MUST I HAVE TO UNINSTALL THE WINDOWS SYSTEM FIRST.THEN RESET?
    BUT HOW TO UNINSTALL IT?
    BY USING THE INSTALL DVD OR ANYTHING ELSE?
    HAVE I NEED TO BACKUP FIRST?
    AND HOW TO BACKUP THE FILES IN THE WINDOWS?

    While we all have MacBooks in this forum not all of us use BootCamp. There's a BootCamp Support Community where everybody uses BootCamp. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/windows_software/boot_camp

Maybe you are looking for