• Command window no longer closes automatically since Anniversary Update

    Home » Forums » AskWoody support » Windows » Windows 10 » Questions: Win10 » Command window no longer closes automatically since Anniversary Update

    Author
    Topic
    #507337

    I have a short batch programme which I run when starting up my office pc (see below). I have used this programme for years, using Windows XP, 7 and 10, without any problems. However, since the anniversary update, the command window does not automatically close after the programme has run.

    I wonder if anyone has experienced the same problem or has any idea how to overcome it? I thought ‘exit’ should force the window to close even if it didn’t close by itself.

    Thanks.

    Code:
    @ECHO OFF
    
    START /MAX EXCEL.EXE
    
    START WINWORD.exe
    
    START C:Progra~1shortk~1shortkey.exe
    
    START “C:UsersVictor DeltaAgvddataGVD Programme DataPlainPastePlainPaste.exe”
    
    START /MAX C:Progra~1AvantB~1avant.exe
    
    START OUTLOOK.EXE
    
    Exit
    Viewing 2 reply threads
    Author
    Replies
    • #1582304

      Yes, EXIT would/should terminate the Command Prompt window you’re using – as should reaching the end of the BATch file!

      There has been a continuing but fairly occasional problem over many versions of Windows with not specifying a title with the Start command.
      I would reword all the Start commands with a null title field, as
      START “” /MAX EXCEL.EXE
      and so on.

      If that doesn’t improve matters, try putting CALL in front of each START command.
      (You never know…)

      BATcher

      Plethora means a lot to me.

      • #1582810

        There has been a continuing but fairly occasional problem over many versions of Windows with not specifying a title with the Start command.
        I would reword all the Start commands with a null title field, as
        START “” /MAX EXCEL.EXE
        and so on.

        If that doesn’t improve matters, try putting CALL in front of each START command.

        Good CALL, BATcher. 🙂 I would never have known so thanks for this info.

    • #1582309

      Many thanks, BATcher. I’ll give it a try when I get back to the office next week.

      • #1582807

        BATcher, your suggestion about a null field title proved absolutely correct. I wondered if it only applied to the line with inverted commas so I tried that first and sure enough, the window closed after running just as it always did before. So my code now looks as below. Thanks again.

        Code:
        @ECHO OFF 
        START /MAX EXCEL.EXE 
        START WINWORD.exe 
        START C:Progra~1shortk~1shortkey.exe 
        START “” “C:UsersVictor DeltaAgvddataGVD Programme DataPlainPastePlainPaste.exe” 
        START /MAX C:Progra~1AvantB~1avant.exe 
        START OUTLOOK.EXE 
        Exit
    • #1582806

      BATcher, your suggestion about a null field title proved absolutely correct. I wondered if it only applied to the line with inverted commas so I tried that first and sure enough, the window closed after running just as it always did before. So my code now looks as below. Thanks again.

    Viewing 2 reply threads
    Reply To: Command window no longer closes automatically since Anniversary Update

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: