Annoying popup windows during exec()

I am executing couple of system commands
in Windows using exec() calls from a signed applet.
Though the functionality works, when the command
gets executed, an empty DOS window pops up and disappers.
Is there a way to hide the popup window or make it not
to show up?
Here is an example of my code. "dir" will be replaced with
some actual useful commands.
String command = "cmd /c pushd c:\\test && dir -s";
Process p = Runtime.getRuntime().exec(command);
Thanks in advance.

For everyone that keeps asking how to NOT have a dos window pop up - here is the c++ code from a program I wrote years ago. It lets you spawn a dos process without a dos window. It should be a simple matter to port this to a .dll that you can use from java.
int CYourClass::Spawn( int nMode, char * cmdproc, char * buff )
STARTUPINFO         si = {0};
PROCESS_INFORMATION pi = {0};
si.cb = sizeof( STARTUPINFO );
si.lpReserved = NULL;
si.lpReserved2 = NULL;
si.cbReserved2 = 0;
si.lpDesktop = NULL;
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
BOOL CreateProcessStatus;
ULONG dosretval;
DWORD retval;
MSG msg;
CBuildApp* pApp = (CBuildApp*)AfxGetApp();
_doserrno = errno = 0; // set to zero first so we can see if we go wrong somewhere
CreateProcessStatus = CreateProcess( cmdproc, buff, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi );
dosretval = GetLastError();
  if  (!CreateProcessStatus)
    return -1;
  if ( nMode == _P_WAIT ) /* SYNCHRONOUS */
    WaitForSingleObject( pi.hProcess, (DWORD)(-1L) );
    GetExitCodeProcess( pi.hProcess, &retval );
    CloseHandle(pi.hProcess);
        // so the system doesnt appear to freeze
        while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))     
          if (msg.message == MM_STOP)        
              pApp->bBusy = FALSE;
              pApp->bStopProcess = TRUE;
              break;    
                if (!AfxGetApp()->PreTranslateMessage(&msg))        
                   ::TranslateMessage(&msg);           
                   ::DispatchMessage(&msg);
         AfxGetApp()->OnIdle(0);   // updates user interface
         AfxGetApp()->OnIdle(1);   // frees temporary objects
   CloseHandle( pi.hThread );
   return retval;

Similar Messages

  • I'm still getting all these annoying popups windows, although I followed every solution suggested(safari extentions,block the pop ups) it's really disturbing please help :(

    I'm still getting all these annoying popups windows, although I followed every solution suggested(safari extensions,block the pop ups) it's really disturbing please help

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Annoying Login Popup Window

    I'm not sure if this was already reported but ever since I updated my iTunes I'm getting this annoying popup window that asks me for my login credential to login to the iTunes store. I simply hated it. Why would I want to login to the store if all I want to do is play some music?
    Is there a way to diable this popup? I tried a few options suggested on other websites but nothing worked for me. The popup shows up twice. It's like Apple is so desprate to sell something....
    This feature is really dumb and anti-consumer because it's "forcing" us to login to buy something. If I want to buy a new album or movie I'll login, but after all this app is to play music (or movie) and for that I don't have to login anywhere.   

    I found the solution to my problem. I'm going to share it here so that others know what to do, if they don't like the idiotic login popup...
    I got the Little Snitch application that showed me iTunes it trying to connect to ax.init.itunes.apple.com on port 80. I blocked that URL and problem went away. iTunes no longer tries to connect to the store because it thinks there's no Internet connections....
    With Little Snitch you can add this URL to a single session, meaning that after you restart iTunes you'll have to block the above URL again. Or, you can add it to the "block forever" list. But then you won't be able to go to the store at all. Solution? You can temporarily disable Little Snitch, or remove the URL from the list of all blocked URLs under the "Rules" menu item. You will, of course, have to block that URL again, when you done.
    The End.

  • IOS 7 Annoying Popup Message

    Need help here.
    My iOS 7 on my iPad 3 always keeps showing this annoying popup window to "Connect to iTunes to Use Push Notifications" for all non-Apple apps I have. My settings have already preset to have push notifications for all my apps. So is this a bug or something? Looks like it.
    Sometimes this popup keeps appearing persistently even after u close the previous one. So yea.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Annoying popup in Access Restrictions

    I just installed my new E4200, and am setting the Access Restrictions.  Is there anyway to block the popup window that displays every time I enter the form or save the settings?
    I'm using IE9 and have tried adjusting the Popup Blocker, but to no avail.
    Chuck

    I have no idea what the reasoning was during the development of this page, but from a user's standpoint, I believe that displaying a popup this frequently is annoying.  As a software engineer with over 30 years experience, I'm a firm believer that the user's point of view should be considered when developing an application.  Therefore, I would never subject a user to this barrage of popups.
    If there is a method for submitting change requests, please let me know.
    Chuck

  • In a multiple monitor situation, how do I get popup windows to open on the same monitor as the parent application is displayed.

    I have two monitors. I have an application that I run all day, displayed on my secondary monitor. Whenever a popup windows is launched form that application, it always opens on the primary monitor. Very annoying. Any way to get the popup to launch in on the same monitor as the parent application?

    Did you solve this problem ?

  • Need to dynamically include an image file when calling a popup window

    I am working on a web dynpro Java app which uses a button to call a popup window/view. Within the popup, I want to dynamically choose an image to show (from mime types) based on a criteria...there will be multiple buttons on the initial view that all call the same popup, but the popup will have content specific to which button called it (specifically the image embedded in the view).
    My question is, what is the proper/best way to do this?
    Here are some possible ways I can think of...
    1. Pass a parameter from each button during the call of the event, but how does that get sent to the implementation of the second view for use in determining which image? And, how do I modify the source property of the image element based on that parameter?
    2. Create multiple pages and views for each button to call...but this seems decidedly un-DRY.
    3. Saw one posting on how to dynamically create a cached image...I could use different event handlers in the initial view, then load individual images from the mime library at that point...cache it into a hard-coded image name...then just call the identical view every time. Not sure this is even possible...input?
    I don't know specifically how to implement any of these options, or know if there are other/better ways. Any help would be appreciated.

    Just create a context attribute "imageFileName" in the component controller or a custom controller, map this attribute from both views (the one that contains the buttons and the one in the popup window that displays the image).
    Now you can have an separate action for each button or one common action. In the first case just set the "imageFileName" inside the action handler for the specific button. In the second case use an action parameter "buttonId" and a parameter mapping
    button.mappingOfOnAction().setParameter("buttonId", button.getId());
    to determine which button triggered the action. After having checked which button was pressed, set the "imageFileName" accordingly.
    Armin

  • Anyone besides me get an annoying popup that cannot be deleted/closed reading:  FaceTime Password Please enter your password for "my e-mail account name" Never used FaceTime.

    Dear Community,
    Anyone besides me get an annoying popup that cannot be deleted/closed reading:
    FaceTime Password
    Please enter your password for "my e-mail account name"
    It happened to me today for the first time since upgrading to Mavericks 10.9.3, no "stop lights" in the title bar of the popup, in fact nothing at all.
     I've never established a FaceTime account. So I tried to delete FaceTime from the Applications folder on the "system" disk thinking this may eliminate the popup. Mavericks informed me "Cannot delete FaceTime as it is used by the operating system. 
    Is this a MAC virus? Or is this an example user community alpha/beta testing that Apple just announced?
    TIA,
    GonzoBernelli

    That being the case, why then did the FaceTime popup even appear in the first place?
    It's not clear to me what it is. If it occurs again, please take a screenshot of the popup and post it in a reply.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse button. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    The screenshot attachment option for this support site appears only on computers - not on iPads.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • Blocking popup windows even when disabling the popup blocker

    For quite some time now, Firefox has been blocking essential popup windows on my computer. It's not just those annoying ones, even those when I am trying to write an email and similar things. I have disabled the popup blocker and it does not change anything at all. It does not alert me that it has blocked anything either, it is simply as if I never clicked anything in the first place. I have tried adding exceptions to my popup blocker, and this does not work either. This is really frustrating and is interfering with my daily use of firefox, and forces me to use crappy explorer which does not block things. What can I do?

    Hi Sachin
    Thank you so much for the reply.
    About your request, the codes that I used are:
    HTML for the PopUp:
    <SCRIPT LANGUAGE="JavaScript">
    function popUp(URL) {
    var iMyWidth;
    var iMyHeight;
    //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyWidth = (window.screen.width/2) - (250 + 10);
    //half the screen height minus half the new window height (plus title and status bars).
    iMyHeight = (window.screen.height/2) - (225 + 50);
    //Open the window.
    var win2 = window.open("http://xarao.businesscatalyst.com/caipiroska.html","Window2","status=no,height=450,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
    win2.focus();
    </SCRIPT>
    For the Link:
    javascript:popUp('http://xarao.businesscatalyst.com/caipiroska.html')
    Of course for all the different links in the page I've changed the http of each image in both codes.
    http://xarao.businesscatalyst.com/cocktails.html
    Thank you once more.
    Best regards,
    Augusto

  • Session lost (IE5 & IE6) when opening popup window.

    Ok, I've been struggling with this problems for days and spent countless hours with google without finding any decent solutions.
    I'm building a ecommerce site and if the user want to see additional information + pictures from a product, he/she can open a popup window that also has "add to cart"-submit field.
    UserID and some other necessary data is kept in sessions but IE5 / IE6 seems to loose these in this new window when opening it via javascript (popup).
    If I have understood right, the session is lost because IE considers the new window as a new task and therefore it is out of the "session scope".
    Ok, one might say that using encodeUrl()-method should fix this problem, but no it doesn't. encodeURL()-method writes the session to URL only when user has disabled the cookies and in my situation it's not the case.
    Has anyone here been struggling with the problem above ? I've been considering if I encode the UserID and other information manually to the URL and decode it back in the popup, but that brings n+1 security issues to my mind and doesn't really sound like a decent solution.
    Thanks in advance,
    - Roni
    p.s: Sorry about my crappy english.

    Hmm,
    I did a small test and managed to get the sessions to work with IE.
    the main page:
    <%@ page language="java" %>
    <%
    session.setAttribute("foo", "bar");
    %>
    <html><head><title>sessiontest</title>
    <script language="javascript" type="text/javascript">
    <!--
    function popUp(URL) {
    options="toolbar=no,directories=no,location=no,status=no," + "menubar=no,scrollbars=yes,resizable=yes,width=416,height=465, left = 362,top = 184";
    var Infowindow=window.open(URL, "Infowindow" ,options);
    Infowindow.focus();
    -->
    </script>
    </head>
    <body>
    sessionattribute <b>foo</b> has value <b>bar</b><p>
    <a href="javascript:popUp('<%= response.encodeURL("sessiondebugpopup.jsp") %>')">link to popup</a>
    </body>
    </html>popup:
    <%@ page language="java" %>
    <html><head><title>sessiontestpopup</title>
    </script>
    </head>
    <body>
    attribute value is:<p>
    <b><%= (String)session.getAttribute("foo") %>
    </body>
    </html>This works just fine, but the code in the actual application does not differ from this.
    Only difference I can figure out if that the .js popup() function is located in header.jsp and the call to the popup is in other .jsp that includes the header.
    Here's the call to the popup in the application:
    <a href="javascript:popUp('<%= response.encodeURL("pop.jsp?prod="+ rs2.getString("tuo_tuonro") +"&img="+ cnt.getPictureURL(rs2.getString("tuo_tuonro"), cnt.getUserId(user)))%>')">link</a>And the above code works just fine with firefox/opera/etc, but not with IE5/IE6 (haven't tried other IE versions though).
    This is really getting annoying.

  • Popup windows now launch a new tab in the same window

    What happened to popup windows? They open in new tabs, which is very annoying. Does anyone know how I can change this?
    Thanks!

    in my cPanel page, which is the control panel for my internet hosting, there is a place to go in and administer a mySQL database. Once inside that tool, there is a popup window for entering in SQL queries. At one time this would spawn a popup window. Now it simply loads a new tab within the same browser window.

  • What is, how to fix, stop, small popup window from 'plugin-container.exe' with 3 digit number that won't stop re-appearing???

    I get very small windows popping up on the screen on top of anything else I'm doing regardless of what apps I'm running or not running. If I R-click on the icon in the task bar, it's identified as "plugin-container.exe"
    The window doesn't say why it's there, but only displays a 3 digit number (for example the on on the screen now says 587) and allows only the usual X to close, or an 'OK' button to close. But a short time later it pops up again.
    I'm running Windows 7 64bit MS Security Essentials and Firefox, though it will pop up even if I just booted and haven't started Firefox yet.
    It's really (really really) annoying. How can I fix it or disable it or whatever it takes to make it STOP.
    Perhaps if I had some idea what it was I could attack it that way, but I haven't a clue. BTW, I've cleaned the registry, and done full scan's for virus and turned up nada.
    Thanks.
    D.

    As per the web site:
    There will be no update to Waterfox 25.0 as a bug causes Adobe Flash to crash on 64-Bit Windows 7 systems. Bug here. Although Firefox 25.0.1 is now available and we could build it, there would be no point of releasing a new version of Waterfox for only two weeks.
    I mostly only use Waterfox and had no problem in the past. I suspect a flash problem may be at the root of my problem however.
    As stated, I've performed (full) virus scans with MS Security Essentials. Also with Housecall, and also with HiJackThis. No problems detected.
    Screen shot of popup window attached.

  • How to get rid off Youtube pause Popup window on Apple TV?

    The Youtube new interface has a Pause popup window. It is really annoying as it hides most of the picture and greys out the rest if you decide to examine a examine a still. Is there a way to surpass that?
    Thanks
    /k

    No there is no way to Mirror full screen from an iOS device to the Apple TV. iOS devices are not 16:9 like your HDTV so the mirrored image appears as the size your iOS device would be if it were the size of your TV. Hope that makes sense.

  • Dowload file using popup window

    My JSP page mutiple download buttons. On clickof this button i am opening a popup window which calls the download servlet. The system can be used by mutilple users. Due to download memory limitatons, only one user can be allowed to download at a time in the servlet. My requirement is, when the download is going on for one user,and when other users try to download the file, i need to show busy screen for them and soon as the first user download completes, the next download from the pool should start automatically by replacing the busy window. Plz suggest me if you have any idea.

    I have one abstract idea for this. Create one more servlet for controlling purpose. Let the clients to contact this servlet for the file. If the real servlet is free then it will forward it to real one else it will send some response to client which indicates server busy. In this response put some client side script to send the request for every 10 sec( it should be decided by u this time frame). Make sure that your controlling servlet maintain some data to identify the older request. Pass the older request to the original servlet once real servlet is free.
    i had similar solution, it was working fine for single client. When i was testing fro multiple concurrent customers, the popup windows behaviour was unexpected. Let us say, i opened 4 broser instances and cliked on 4 webpages download buttons. As per my implementation the first cliked one started downloading and for other users i am showing busy popup window. As soon as the first one finished downloading, the either of 3 waiting requests will be served in the pool. For the one whose download slot available, the new window will be opened with download servlet and i am closing the busy popup window for that client. This goes on like this. During the process sometimes, i am getting the same file downloaded for 2 clients. The first download works fine, no problem. The second download also works fine, but when thid download starts, insted of opening for separate window for download, it shows the same file which downloaded for second client or browser. I am pasting here below the code which i am working on.
    boolean firstTime = true;
    boolean firstTimeFuserAvailable = true;
    Object parserLock = new Object();
    java.io.PrintWriter out = null;
    while (true){
         System.out.println("\nTrying to get fuser for vehicle id:"+vehicleId);
         synchronized(parserLock){
              if (mdfDataDownload.isFuserAvailable()){
                   MDFFuser mdfFuserInstance = MdfFuserPool.getInstance().checkOut();
                   session.setAttribute("mdfFuserInstance", mdfFuserInstance);
                   System.out.println("\nGot Fuser for vehicle Id:"+vehicleId);
                   if (firstTimeFuserAvailable){
                        System.out.println("\nForwarding the request for vehicle Id:"+vehicleId);
                        rd.forward(request, response);
                        break;
                   } else {                                       
                        System.out.println("\nOpening new window download for vehcile Id:"+vehicleId);
                        //set the MIME type of the response to "text/html"
                             //response.setContentType("text/html");
                             //use a PrintWriter send text data to the client
                             //java.io.PrintWriter out = response.getWriter();
                             //output the HTML content
                             out.println("<html><head>");
                             out.println("<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/master.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/header.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/icons.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/table.css' type='text/css'>");
                             out.println("<title>Intermediate Page</title></head>");
                             out.println("<script language='JavaScript'>");
                             out.println("var date=new Date();");
                             out.println("var datetime = date.getYear()+date.getMonth()+date.getDate()+date.getHours()+date.getMinutes()+date.getSeconds()+date.getTime()");
                             out.println("window.open('/FCDA_CARS_DCC/FusedMdfDownloadServlet',datetime,'width=700,height=600')");
                             out.println("window.close()");
                             out.println("</script>");                         
                             out.println("");
                             out.println("</div></div></body></html>");
                             out.flush();
                             break;
              } else {                                  
                   firstTimeFuserAvailable = false;                              
                   if (firstTime){
                        System.out.println("\n Opening first time window for vehicle id:"+vehicleId);
                        //set the MIME type of the response to "text/html"
                             response.setContentType("text/html");
                             //use a PrintWriter send text data to the client
                             out = response.getWriter();
                             //output the HTML content
                             out.println("<html><head>");
                             out.println("<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/master.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/header.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/icons.css' type='text/css'>");
                             out.println("<LINK rel='stylesheet' href='/FCDA_CARS_DCC/theme/dcx_fixed/css/table.css' type='text/css'>");
                             out.println("<title>Error Page</title></head><body>");
                             out.println("<div class='wrapper'>");
                             out.println("<div class='mainborderless'>");
                             out.println("");
                             out.println("");
                             out.println("Please wait while fusing starts....");
                             out.println("");
                             out.println("");
                             out.println("</div></div></body></html>");
                             out.flush();
                             firstTime = false;
                   try{
                        Thread.sleep(2000);
                   }catch(InterruptedException e){
                        System.out.println("Interrupted Exception:"+e);
    The FusedMdfDownloadServlet is the actual downloading servlet.

  • How to stop the Company Code popup window in MIRO!

    Hi,
    When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that login, however, it will asks again whenever User login the system again!
    Can someone tell that how to stop this Company Code popup window in MIRO, so that the system should not ask for the Comp Code whenever User logs in and enters into MIRO? I think there are some entries maintained in the User Master for this!
    Thanks.

    Hi,
    It is Necessary for the user to enter the company code for which he need to process the Invoice.
    First think is if the user knows ,that he is only going to do for one company code.then
    in the T code SU3.
    In the parameter TAB
    you can make the Default value for the parameter ID BUK as your Comany Code value ( Eg 1000)
    so that when ever the user does the MIRO ,it comes with that company code only.
    and if he want to do for another comapany code ,he has to use the option of Switching the comapny code.
    so this is user dependent and has to be made for all users.
    Note .the above setting works only you have entered saved and logged off and log in again.
    also ,this value gets defaulted you all the comapny codes in all screen.
    Hope so it helps.
    Regards
    Anjanna.

Maybe you are looking for

  • Move HDD from one MBP to another

    I just purchased a new 750GB Hard drive for my 17" MBP running Mountain Lion, and it's all working great. Now I want to move everything over to a 15" MBP (also running Mountain Lion). I'm aware of how to use Migration Assistant, and how to replace th

  • Network accounts no longer available after server reboot

    Mac OS Server 10.4.10 Open Directory Master running DNS. DNS is working properly and the system had been up and running for about 4 months without any problems and it had been restarted periodically for software updates, etc. I restarted the server t

  • Live problem: Received XAException for commit1

    We are encountering the following error on a live system. Does anyone know anything about the following exception. I cannot find any details on the web. <2007-03-22 06:47:59,398> <DEBUG> <aqa_examiner_payments.collaxa.cube.ws> <WSIFInvocationHandler:

  • Java - USB I/O

    Hello, I have problems with the running of my USB app.  I get a error of "Exception in thread "main" javax.usb.UsbException: Properties file javax.usb.properties not found."... Well, I have killed Google with this error, but still no luck. This is th

  • Filter and Sort Options???

    Is there a way to Sort or Filter only the RAW files in a Library folder that have had adjustments made to them in the Develop Module?   Not by date, key words or flags etc.  Only develop adjustments. Thanks Mark