Change Display With Bat Command?

Page 1 of 2 12 LastLast

  1. Posts : 26
    MS Windows 10 Home 64-bit
       #1

    Change Display With Bat Command?


    So I know pressing window+p brings up a menu that allows you to switch display but I want something like a bat command that when run, would switch the display to "Pc screen Only".

    How would I do this?
      My Computer


  2. Posts : 2
    Windows 10 Home 64-bit
       #2

    Extend Display
    DisplaySwitch.exe /extend

    2nd monitor
    DisplaySwitch.exe /external

    Computers Monitor
    DisplaySwitch.exe /internal

    Duplicate Display
    DisplaySwitch.exe /clone
      My Computer


  3. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
       #3

    Hello Daniel,

    If you like, you could use the commands in OPTION TWO below for this. :)

    https://www.tenforums.com/tutorials/4...dows-10-a.html
      My Computers


  4. Posts : 26
    MS Windows 10 Home 64-bit
    Thread Starter
       #4

    Thank you both of you! Works perfectly. Gave you both rep.
      My Computer


  5. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
       #5

    I'm glad we could help. :)
      My Computers


  6. Posts : 6
    Windows 10 built 1903 x64 Enterprise
       #6

    hunte922 said:
    Extend Display
    DisplaySwitch.exe /extend

    2nd monitor
    DisplaySwitch.exe /external

    Computers Monitor
    DisplaySwitch.exe /internal

    Duplicate Display
    DisplaySwitch.exe /clone
    I've tried them in cmd and won't work. Only shortcut works. I need to add them to run before login and I don't think a shortcut will work there:

    Local Group Policy Editor.

    Under Computer Configuration / Windows Settings you'll find Scripts (Startup/Shutdown)

    Under User Configuration / Windows Settings you'll find Scripts (Logon/Logoff)
      My Computer


  7. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
       #7

    stefanos46 said:
    I've tried them in cmd and won't work. Only shortcut works. I need to add them to run before login and I don't think a shortcut will work there:

    Local Group Policy Editor.

    Under Computer Configuration / Windows Settings you'll find Scripts (Startup/Shutdown)

    Under User Configuration / Windows Settings you'll find Scripts (Logon/Logoff)
    Hello stefanos, and welcome to Ten Forums.

    If you like, you might see if the "Project Display" context menu below may work better for you.

    Add Project Display context menu in Windows 10
      My Computers


  8. Posts : 6
    Windows 10 built 1903 x64 Enterprise
       #8

    Brink said:
    Hello stefanos, and welcome to Ten Forums.

    If you like, you might see if the "Project Display" context menu below may work better for you.

    Add Project Display context menu in Windows 10
    I found this in similar topic and its very useful. To be honest I'm going to search more for a way to run it from cmd because it doesn't fully working for me (Sometimes I have to use only the one of two monitors and I can't login when it booting to the 2nd screen, windows shortcut is a trouble at win 10 because it not that responsive as it was at windows 7)

    Thanks for all this work you do everything is great!!! I'm for years a windows 7 forums member also and I remember you.
      My Computer


  9. Posts : 68,881
    64-bit Windows 11 Pro for Workstations
       #9

    stefanos46 said:
    I found this in similar topic and its very useful. To be honest I'm going to search more for a way to run it from cmd because it doesn't fully working for me (Sometimes I have to use only the one of two monitors and I can't login when it booting to the 2nd screen, windows shortcut is a trouble at win 10 because it not that responsive as it was at windows 7)

    Thanks for all this work you do everything is great!!! I'm for years a windows 7 forums member also and I remember you.
    I remember you from Seven Forums as well.

    Please just let me know if you have any questions on this. If you like, the commands in option 2 below should work for you.

    Create Display Switch shortcut in Windows 10
      My Computers


  10. Posts : 6
    Windows 10 built 1903 x64 Enterprise
       #10

    Brink said:
    I remember you from Seven Forums as well.

    Please just let me know if you have any questions on this. If you like, the commands in option 2 below should work for you.

    Create Display Switch shortcut in Windows 10
    I can't run it even when I'm just testing, I typed pause at the end of the cmd to see the error but the cmd window instantly disappears... I've tried:

    1.
    Code:
    "%windir%\System32\DisplaySwitch.exe" /clone
    pause
    2.
    Code:
    %windir%\System32\DisplaySwitch.exe /clone
    pause


    Brink said:
    Hello stefanos, and welcome to Ten Forums.

    If you like, you might see if the "Project Display" context menu below may work better for you.

    Add Project Display context menu in Windows 10
    I think that yours is better than the one I've found. In order to replace it do you think that somehow I have to remove it first? (take the reg file and retype it with - in order to remove those) Or wait for next windows re-installation?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:42.
Find Us




Windows 10 Forums