What has happened to CMD in Windows 11?

Knut 0 Reputation points
2024-04-04T07:02:13.2966667+00:00

Hi.

I've tried both the versions of CMD in Windows 11, and I can't get my scripts to pause anymore. Like FFMEG running in bat.

In Windows 10 i could just double click them and they would pause.

In Windows 11 they just appear to be paused, but run in the background, no change, just visible progress not showing anymore. When I unpause they just jump forward.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2024-04-04T21:25:44.11+00:00

    Is your bat file executing the pause statement? And that's not working?

    Here is my test.bat.

    @echo Run ipconfig and look for a string in its output.
    ipconfig.exe | findstr.exe 192.168.184
    @echo The pause statement is next where you will need to hit some key to allow execution to continue.
    pause
    @echo Next use timeout to wait for 10 seconds.
    @echo This window will then close.
    timeout /t 10
    
    
    

    Double clicking on it, launches a window where it executes the 2 programs and then the pause statement suspends execution until I hit a key.

    User's image

    After I press a key, the bat file continues to the timeout statement which does a countdown. The command prompt window then closes.

    On both machines, open regedit and check this key. See if there is any difference.

    HKEY_CLASSES_ROOT\batfile\shell\open\command

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.