Command window stays opened at the end of script execution

Hello everyone,
Since I install Windows 2012 R2 systems, the command window opened when I execute my batch scripts often stay opened even if the script has ended.
As an example if I double-click a batch file, if the last line of the script is "echo here", it displays "here" and the window is not closed by Windows (it's not active of course, it just stays opened).
I found an easy way to trigger the (apparently) same problem. Do like this:
- right click the Windows button at the bottom left. Select "Command prompt"
- in the command window type "mstsc"
- close mstsc clicking on the close button
- type "exit" in the command window (or click the close button)
Now the command prompt is "frozen". I cannot type any command in it and I have to click the close button a second time to close it.
Anyone has an idea what is causing this? 
Thanks

Hi Anna,
Sorry. I didn't receive any update notification email :-/
I tried using "start" as you suggested by you and the article you gave. No change at all.
To explain better I did a video you can see here : http://pferrucci.perso.sfr.fr/Issue/  (unfortunately I couldn't do it better).
It shows :
- I open a command prompt as Administrator (just to be sure, but it's the same as a non-admin user)
- I run taskmgr and I close it when it opens
- at this point, I type "exit" to close the console window. NOTE: at this moment you can see the window title changes from "Administrator : command prompt" to "command prompt". Maybe it is of interest.
- from now on, I can't type anything at the prompt. It is just disabled.
- I click on the close button once (see below)
- I open a second command prompt as Administrator. I run taskmgr and I close it.
- at this point, I click the close button once to close the console window. The button reacts but the window stays opened. At this point I could type some text at the prompt, the prompt would not react. It is just disabled.
- I click on the close button a second time.  The Window goes away.

Similar Messages

  • Each window that I open stays open on the screen. How can I get rid of this "tiling"?

    On an iMac G4 with OS 10.4.11, recently each window I open stays on the screen when I open files within them. This creates what I think is called "tiling." I must have given an erroneous command, and I don't know how to get rid of it.  I hope someone can help.

    Are you referring to Finder windows? Those are akin to Explorer windows on a PC.
    If so, it is normal for them to stay open on the desktop when you open a file they display. If you mean they open a new window and clutter the desktop with tons of open windows, there is a fix for that.
    Click once on the desktop so you are using Finder. On the top left, click "Finder - Preferences" Uncheck the box next to "Always open folders in a new window"
    The change is immediate.
    Hope that helps.

  • Why does the print cue window stay open even after job is done?

    In Tiger, and every other version of OSX I have any recollection of using, the printer window opens to display what's in the cue when you select to print something. Once printing is done, this cue closes. Since installing Leopard, everytime we print from our iMac, MacBook or MBP, the print cue window stays open indefinitely after the job is done, requiring a manual closing of the window. I can't for the life of me fathom what benefit this brings or who would want this. Is this part of Leopard or a problem with our install? Something I can turn off?

    If you control-click (or right click) on the open printer queue in the Dock you can choose to have it auto close once the spool file is sent.
    As to why this is necessary in Leopard, well I haven't seen a good enough answer to date...
    PaHu

  • Help! Folder Windows won't stay open in the Finder

    Please, what is causing this and how do I fix it? Some folders will not stay open in the finder. For instance, when I click on the Applications folder (either the actual or alias), the window will try to open, but before it can show its content, it disappears. This doesn't happen with all folders, only some of them. This is very disturbing.
    Please help if you can.

    Through the network I was able to figure out what was going on. There was a weird file, its name was made up of Chinese characters. Whenever it was supposed to show up on the screen of this one mac, the window would close. I guess that particular mac isn't set up to show those characters. I was able to trash that file and that took care of it.

  • Closed Project Window Stays Open

    I have one project out of three where this is a problem.  I can end the project but the window does not close.
    I am using Captivate 4 and I have gone to preferences and changed end of project to be Close Project. Even at that, the last slide wants to keep going. I want it to freeze so it can be read. I put a button on it to stop the slide and then had to put a dummy slide at the back to close the project once the viewer hits the Close button.
    On the other projects, I can just let the slide fade out. Why does the window stay open? Is there a solution? I could not find this listed in the forum but was sure this was an issue in versions 2 and 3 as well.
    Thanks.
    Jeffrey Riley

    Do you mean like this?
    Indeed, that is the new behaviour. You have to make a selection, before closing the window.
    The new GarageBand does not quit, when closing the main application window. This way you faster switch between projects. You do not have to quit and relaunch.
    If you want GarageBand to quit, use the quit command ⌘Q instead of closing the main window.
    -- Léonie

  • Start up window staying open

    When i start up the BI publisher- the dos windows stays open now? Is this normal? When i shut it down it closes by itself.

    that should have nothing to do with BI Publisher.
    The application server seem to be started with java and not javaw.
    Java allows you to see the console window on the sever which helps
    identify issues.
    It is not really a dos box - it is a command prompt.
    Klaus

  • How do I get new tabs to open at the end of the tab bar rather than next to the tab i am working on?

    Im running firefox 3.6.12 on a pretty dated computer. Im using Windows XP Home Edition SP3
    On previous FireFox editions, opening new tabs from pages Im working on, used to appear at the end of the list of tabs. Now when I open it, it appears right next to me.
    Is there a way of altering this setting? I often open multiple tabs from the same page by clicking a link with the mouse wheel and I like to work through them in the order I clicked them. This is usualy for comparing things like holidays, car insurance etc
    thankyou

    You can change a preference to make tabs open
    # at the end of all open tabs
    # immediately after the current tab.
    See: http://kb.mozillazine.org/About:config
    *Type '''about:config''' in the URL bar and press the Enter key.
    *If you see the warning, accept it (promise to be careful).
    *Filter = browser.tabs.insertRelatedAfterCurrent
    *Look at the "Value" column ('''false'''=open at end, '''true'''=open after current tab); Value = true is the default.
    *Double-click that preference to toggle the value from true to false, or false to true
    *Restart Firefox (File > Restart Firefox)
    See: http://www.mydigitallife.info/2010/02/01/change-firefox-to-open-new-tab-at-far-right-end-of-tabbar-disable-insert-next-to-current-active-tab/
    <br />
    The information submitted with your question indicates that you have out of date plugins with known security and stability issues that should be updated. To see the plugins submitted with your question, click "More system details..." to the right of your original question post.
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *Java Plug-in 1.6.0_11 for Netscape Navigator (DLL Helper)
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave for Director'''
    #*NOTE: this is not the same as Shockwave Flash; this installs the Shockwave Player.
    #*Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place so you can find it).
    #*When the download is complete, exit Firefox (File > Exit)
    #*locate and double-click in the installer you just downloaded, let the install complete.
    #*Restart Firefox and check your plugins again.
    #*'''<u>Download link and more information</u>''': http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use the links below to avoid getting the troublesome "getplus" Adobe Download Manager and other "extras" you may not want
    #**Use Firefox to download and SAVE the installer to your hard drive from the appropriate link below
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Windows only Download link</u>''': ftp://ftp.adobe.com/pub/adobe/reader/
    #***Choose your OS
    #***Choose the latest #.x version (example 9.x, for version 9)
    #***Choose the highest number version listed
    #***Choose your language
    #***Download the file
    #***Windows: choose the .exe version
    #****NOTE: '''At this moment''', using this method, only the incremental update is available on the Adobe FTP server; download the .msp file under the "misc" folder, save it to your hard drive, exit Firefox, run the installer file and Windows Installer will install it for you.
    #**'''<u>OSX, Linux and Solaris Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*Also see: https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox (do not use the link on this page for downloading; you may get the troublesome "getplus" Adobe Download Manager (Adobe DLM) and other "extras")
    #*After the installation, start Firefox and check your version again.
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    #* After the installation, start Firefox and check your version again.

  • When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

  • After upgrading my iPhone 5 to iOS 7 iTunes will not stay open once the app launches...does anyone know how to fix this? Please Help :)

    After upgrading my iPhone 5 to iOS 7 iTunes will not stay open once the app launches...does anyone know how to fix this? Please Help :)

    I have exactly the same problem. I too have tried everything that's been suggested, but still not working. Don't really what to do next? I have an iPhone 4S.

  • When I open a new window, it opens behind the exist ing window instead of in front of it. How can I fix this?

    When I click on a link and I choose the option to open link in a new window, it opens behind the currently open window instead of in front of it. This is a real nuisance. Why is this happening, and how do I fix it?

    Hi alanbala,
    There are several possible reasons why the new window opens in the background and not in the foreground by default.
    # another installed program is causing this
    # the Firefox main window is set to Always on Top
    # probably a Windows 7 bug
    # possibly a Firefox bug [https://bugzilla.mozilla.org/show_bug.cgi?id=790013 https://bugzilla.mozilla.org/show_bug.cgi?id=790013]
    What you can do is
    # update your Windows 7 to the latest security patches
    # open Mozilla Firefox in Safe Mode (see KB article [[Troubleshoot Firefox issues using Safe Mode]])
    # evaluate the other programs installed on your computer
    # open new links on a new tab
    Let us know your progress. I will be following this support thread.

  • Is there a plug-in for Firefox 4.01 that allows tabs to open at the end? Millions of people do multiple searches on eBay and Craig's List - it is a pain to have to look at the results after each search instead of reviewing them when the searches are done

    The the only answer I have found to this question does not apply to Firefox 4.01. The Plug-in for allowing tabs to open at the end that works in older versions of Firefox does not work in 4.01. I would like to know if there is a plug-in that works for 4.01 or when or if we can expect one.

    Open new tabs on far right, restore pre Fx3.6 behavior, set '''browser.tabs.insertRelatedAfterCurrent''' to '''false''' in '''about:config'''
    For more information see item #36 in ...
    You can make Firefox 4.0.1 look like Firefox 3.6.17, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 look like 3.6)]
    '''''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config (entries)] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config (How to change)] -- Specialized list of only [http://dmcritchie.mvps.org/firefox/tabs_config.htm Tabs configuration] variables.''

  • Why are the first items to be played opening at the end?

    This problem occurs on podcasts, videos, and songs: when an item is played, it opens at the end rather than the beginning, so the next item in the list plays instead. Sometimes if I click on the item again, it starts from the beginning, but equally as often, it skips to the next item repeatedly.
    Is anybody else seeing this issue?

    This is normal for Creative's headphones. It's so that you don't have the wire dangling down the front of you, more just to the side of you. Personally, I don't really care much for them which is why I've replaced mine. But to each their own.

  • Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the

    Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the dock.

    Help please!

  • I want my new tabs to open at the end of the row of tabs, how do I do that?

    When I open a new tab, I would like it to open at the end of the row of tabs, not next to the tab I'm on now. I'm used to it opening on the end like it did in older versions of Firefox. I'm sure this is an easy fix but I can't find anything in options and I'm getting frustrated.
    Thanks!

    Hello callagalla, go to [http://kb.mozillazine.org/About:config about:config] find(or copied/paste from there) '''browser.tabs.insertRelatedAfterCurrent''' and double-click on it to make it FALSE.
    thank you

  • Is there a way to have new windows/links open behind the current open window, running Mavericks?

    I would like to have new windows that open from links, or when I "right-click, open new window", to open behind the window I am reading from, working from, browsing, etc. I often am doing research, and opening multiple supplemental links, but do not like having to click back to the page I am working from every time.
    A separate choice when I right click, to "open in new window behind current window" would be great!

    There is no add on that I know of that can do this, but there has been an implementation found for javascript via this link:
    *[http://stackoverflow.com/questions/17570412/prevent-document-losing-a-focus-when-new-tab-is-opened Stackoverflow: prevent document from losing a focus when a new tab is opened]
    * There is also an about:config entry: [http://kb.mozillazine.org/Browser.link.open_newwindow.restriction Browser.link.open_newwindow.restriction] that is explained wht to do when clicking on a link in a webpage that requires a new window open, but it does not restrict the focus of the tab
    *[https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/?src=search Tab Mix Plus has similar features check this one out too. ]

Maybe you are looking for