Where's The Registry Location For File Explorer's Size?


  1. Posts : 2,899
    Windows 10 Pro for the Bro
       #1

    Where's The Registry Location For File Explorer's Size?


    Hello, when you open any File Explorer window (such as going to C:\ ), File Explorer has a specific saved window size that it opens with. So when you resize it, either horizontally and/or vertically, close it and re-open it again, it saves the size of the window. I would like to know the location within the Registry where this information is saved. Also if possible, I would like to know the saved window size location for Notepad is, as well. Anyone know where this is?
      My Computer


  2. Posts : 3
    Windows 10 Family, 64-bit
       #2

    On my system, HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\WinPos1280x1024x96(2).position, where position is left, right, top or bottom, gives the position of the window border in pixels.

    I assume the name of the key depends on the screen resolution.
      My Computer


  3. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #3

    Yes! Thank you! That's exactly what I was looking for. I changed the number for my resolution, and that applied to it.

    Yet do you know where Notepad's view settings are? (refer to this post for this question: Where's The Registry Location For The Notepad Window Size? )
    Last edited by pepanee; 14 Jan 2017 at 19:19.
      My Computer


  4. Posts : 16,781
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    @pepanee,

    I stumbled across this thread whilst looking for something else.

    Notepad's window settings are in
    HKCU\Software\Microsoft\Notepad
    See Reset Notepad Default Open Position and Size - TenForumsTutorials

    This is the batch file I use to reset it to cover the right-hand half of the display on each of my computers.
    Code:
    :: This script sets the Notepad window to the right-hand half of the screen as if it had been WinKey-RightArrowed
    :: This script must be run whilst Notepad is closed
    :: The script includes setting Format menu, Word wrap and View menu, Status bar
    :: The script includes flow control based on ComputerName because I always write a single script for use on all my computers in order to save effort
    :: Some computers have the same resolution but that does not necessarily mean that they can be treated identically the way computers 1, 2 are and 3, 4 are.  Computer 6, for example, has the same resolution as computers 3, 4.
    :: No particular tests have been run to investigate Display scaling but the script works for COMPUTER3 despite its 125% scaling
    :: No particular tests have been run to investigate the use of external monitors
    
    prompt $g
    Title Reset Notepad window
    
    GoTo %ComputerName%
    
    :COMPUTER1
    :COMPUTER2
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "fWrap" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "StatusBar" /t REG_DWORD /d 1 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosX" /t REG_DWORD /d 954 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosY" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDX" /t REG_DWORD /d 973 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDY" /t REG_DWORD /d 1055 /f
    GoTo EndResetNotepadWindow
    
    :COMPUTER3
    :COMPUTER4
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "fWrap" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "StatusBar" /t REG_DWORD /d 1 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosX" /t REG_DWORD /d 762 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosY" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDX" /t REG_DWORD /d 779 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDY" /t REG_DWORD /d 935 /f
    GoTo EndResetNotepadWindow
    
    :COMPUTER5
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "fWrap" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "StatusBar" /t REG_DWORD /d 1 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosX" /t REG_DWORD /d 675 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosY" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDX" /t REG_DWORD /d 697 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDY" /t REG_DWORD /d 745 /f
    GoTo EndResetNotepadWindow
    
    :COMPUTER6
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "fWrap" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "StatusBar" /t REG_DWORD /d 1 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosX" /t REG_DWORD /d 940 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosY" /t REG_DWORD /d 0 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDX" /t REG_DWORD /d 988 /f
    REG ADD "HKCU\Software\Microsoft\Notepad" /v "iWindowPosDY" /t REG_DWORD /d 1177 /f
    GoTo EndResetNotepadWindow
    
    :EndResetNotepadWindow
    ::Pause at EndResetNotepadWindow during testing


    You might also be interested in Manipulating Notepad Find direction [my post #6] - TenForums


    All the best,
    Denis
      My Computer


  5. Posts : 2,899
    Windows 10 Pro for the Bro
    Thread Starter
       #5

    Thanks for the info Try3
      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 05:57.
Find Us




Windows 10 Forums