Results 1 to 6 of 6
  1. #1
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts

    Command window no longer closes automatically since Anniversary Update

    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~1\shortk~1\shortkey.exe
    
    START "C:\Users\Victor Delta\Agvddata\GVD Programme Data\PlainPaste\PlainPaste.exe"
    
    START /MAX C:\Progra~1\AvantB~1\avant.exe
    
    START OUTLOOK.EXE
    
    Exit

  2. #2
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,420
    Thanks
    33
    Thanked 195 Times in 175 Posts
    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

    Time prevents everything happening all at once...

  3. The Following 2 Users Say Thank You to BATcher For This Useful Post:

    Rick Corbett (2016-10-27),Victor Delta (2016-10-22)

  4. #3
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts
    Many thanks, BATcher. I'll give it a try when I get back to the office next week.

  5. #4
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts
    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.

  6. #5
    Star Lounger
    Join Date
    Dec 2009
    Location
    Poole, UK
    Posts
    95
    Thanks
    22
    Thanked 2 Times in 2 Posts
    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~1\shortk~1\shortkey.exe 
    START "" "C:\Users\Victor Delta\Agvddata\GVD Programme Data\PlainPaste\PlainPaste.exe" 
    START /MAX C:\Progra~1\AvantB~1\avant.exe 
    START OUTLOOK.EXE 
    Exit

  7. #6
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,143
    Thanks
    101
    Thanked 579 Times in 464 Posts
    Quote Originally Posted by BATcher
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •