Pasting a file into a folder set for Views > List

Page 2 of 4 FirstFirst 1234 LastLast

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

    You're welcome. I always depend on that logic for changing folder view settings.
      My Computer


  2. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #12

    KeithM said:
    Also note that you have to set Also apply this template to all subfolders for each instance of Documents in the shell namespace:
    • This PC\Documents
    • shell:UsersFilesFolder\Documents
    • This PC\Windows (C:)\Users\<ProfileDir>\Documents


    as they each save their own distinct view and are separate nodes in the BagMRU index.


    And the same appies to other folders as well....
    Yes, turns out it's still not working pretty much at all.

    KeithM said:
    And the same appies to other folders as well...
    Are you referring to the other "Libraries folders"?

    For this shell:UsersFilesFolder\Documents you're referring to This PC\Windows (C:)\Users\<ProfileDir>\Documents, C:\Users\Public\Documents, and C:\Users\Default\Documents , for which I still had to apply "Also apply this template to all subfolders", correct?

    What else qualifies as "other folders as well?
    Last edited by kitpzyxmsir; 28 Oct 2022 at 14:52.
      My Computer


  3. Posts : 6,853
    22H2 64 Bit Pro
       #13

    Well @KeithM has a much greater/ in depth knowledge of this topic than I do but I suggest that you revisit the tutorial and disable automatic folder type discovery.

    OPTION THREE
    To Change Template of All Folders using a BAT file

    Maybe you missed that?

    Change Folder Template in Windows 10

    Then manually change library templates to match. Then apply to the items in Post #10.
      My Computer


  4. Posts : 989
    Microsoft Windows 10 Home
       #14

    kitpzyxmsir said:
    Yes, turns out it's still not working pretty much at all.

    Are you referring to the other "Libraries folders"?

    For this shell:UsersFilesFolder\Documents you're referring to This PC\Windows (C:)\Users\<ProfileDir>\Documents, C:\Users\Public\Documents, and C:\Users\Default\Documents , for which I still had to apply "Also apply this template to all subfolders", correct?

    What else qualifies as "other folders as well?
    I was referring to the other folders found under This PC: Desktop, Downloads, Music, PIctures, Videos, and, if you kept it, 3D Objects. Additionally, for sub-folders of the Desktop folder, the view seem when the folder is selected from the Desktop ( Address bar display is simply <FolderName> ), constitutes a fourth namespace path, and thus that view can be set distinct from the others as well.

    I looked back at your OP, but not sure if these points have been hit:

    • If folders seem to be not retaining their view settings, you may be maxxed out. Patsing the following into a PowerShell console and pressing Enter will return a number, if that's 5,000, you're maxxed out.
      • ((gp "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU").Nodeslots).count

      Selecting "Also apply this template..." doesn't apply any changes you have made to the current view from the default view for that FolderType, e.g. IconMode, column choice, etc. So it should be used mainly to over-ride the difault FolderType that is applied either by locaiton, i.e. sub-folders created under Music have the "Music" FolderType; or by content-sniffing. To set custom defaults that govern IconMode, Sort, Columns, etc. for a give FolderType, you use Aooly to Folders.
      My Computer


  5. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #15

    KeithM said:
    If folders seem to be not retaining their view settings, you may be maxxed out
    Hi Keith,

    This thread has been a great tutorial for me. I want to thank all those who have contributing thus far. I will definitely be documenting and relying on these lessons in the future.

    But, we've strayed form the main topic. Probably my fault. We got mixed up into a "related" subject, and I didn't realize until now.

    My OP was about Pasting a file into a folder set for Views > List, not about my folders not retaining their view settings:

    kitpzyxmsir said:
    The vast majority of the time when I paste a file into a folder that has a multitude of files, and the folder is set for Views > List, I am immediately navigated to the end of the file list, instead of to the actual list location of the given file, after which I must search for the file. But every once in a while, very infrequently, in that same folder, after pasting, I am taken directly to that file's precise location.

    However, given the same scenario, but the folder is set to Views > Details, after pasting, I'm steered right to the given file location.

    Somehow, in the case of Views > List, they had two choices, and purposely opted for inconvenience, IMO

    Is there any way to gain control of this behavior?
    So, getting back to that scenario. I've tried all the suggestions that have been offered. The problem has been, immediately after initiating the changes, my pasting "dilemma" seems to be taken care of, i.e. when I ran the All_Folders_Use_General_Items_Folder_Template.bat yesterday.

    It initially achieved the desired outcome, but today things have reverted back to, after pasting a file, being directly taken to the location of the last file in the folder, instead of to the location of the pasted file, in it's alphabetical order.
      My Computer


  6. Posts : 2,917
    Windows 10 Pro for the Bro
       #16

    kitpzyxmsir said:
    It initially achieved the desired outcome, but today things have reverted back to, after pasting a file, being directly taken to the location of the last file in the folder, instead of to the location of the pasted file, in it's alphabetical order.
    If what you're saying is that after you paste the file into the folder, what you see next is the file itself, selected, showing at the bottom of the list of items in that folder.
    That is normal. Windows likes to play the "random game" of deciding if it should list that newly pasted file alphabetically, or at the end of the list of files in that folder. You're gonna have to get used to it.

    Assuming that the file gets listed at the end, you can press F5 on your keyboard (to refresh the folder), and it will list that file alphabetically, selected, in that folder.

    Don't know why Microsoft doesn't want to fix this little annoyance, but there's nothing, as far as I know, that you can do (other than pressing F5) to show it the way you want it to be shown at that initial moment in time. I've come across this little "bug" ever so many times in the past, in many different scenarios, and it seems that there is nothing one can do about it.

    Keep in mind though, this file will automatically be listed alphabetically anyways after you browse away from that folder. (So it's not staying at the end of that list permanently; it IS going to get organized anyways).
      My Computer


  7. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #17

    pepanee said:
    If what you're saying is that after you paste the file into the folder, what you see next is the file itself, selected, showing at the bottom of the list of items in that folder
    That's not the case.

    I guess my attempts to describe precisely what's happening haven't painted a clear picture. I'm really not trying to nit-pic, but when you mention "bottom of the list of items", are we saying the "end" of the list?

    Immediately after I paste a file into this folder that is in View > List mode, I am "auto-scrolled" all the way to the right, to the very "end" of the file list. However, the file I pasted is not visible in that folder's location.

    The file I pasted is instead taken to it's proper alphabetical position in that list/collection of files, forcing me to scroll to the left/backwards to find it. The good news is that there is at least a "next best thing" press F5 option. Thank you for that.

    Maybe I'm missing some logic here, but the fact that it operates this way make no sense to me.
    Last edited by kitpzyxmsir; 30 Oct 2022 at 17:39.
      My Computer


  8. Posts : 2,917
    Windows 10 Pro for the Bro
       #18

    Hello, thank you for your reply.

    I'm glad that you are following along with my jumbled up logic, at times, in my posts. I really apologize for that, and I'll do my best to keep the info that I am saying, more consistent and understandable. =)

    When I said "bottom of the list of items", you are correct; what I was implying was the "end" of the list, towards the right. I completely forgot that having items as a "List", shows the items horizontally, not vertically! I really apologize for saying it incorrectly. My brain's all over the place sometimes; it's down towards the end of things, and way off to the right of things.
    ...and sometimes it is right about things! hahaha..

    kitpzyxmsir said:
    Immediately after I paste a file into this folder that is in View > List mode, I am "auto-scrolled" all the way to the right, to the very "end" of the file list. However, the file I pasted is not visible in that folder's location.
    1) Yes, sometimes you will be auto-scrolled all the way to the right, towards the end of the file list, and then you will not see the file anymore (because it got alphabetically organized). So once you paste it, Windows puts it at the end of the file list (all the way on the right) for a split second, will auto-scroll you all the way to the right. But then after a split second, it will alphabetize the file and put it in the correct location of that folder (instead of the end). But you would still be all the way towards the right.
    2) and sometimes you could be auto-scrolled to the alphabetical location of that pasted file, and you will see it selected in the correct location that it's supposed to be at. (I think this is what you are preferring to see).

    So yes, I guess F5 works.

    But check this out: Once you paste a file, and you are sent all the way to the right, you can press the Down button on your keyboard, and you will be sent exactly to the correct location of that file, except you will have the file under it selected.
    Instead, you can press Down, then press Up, on the keyboard, and you should be fine. (instead of looking down at your keyboard, to look for that F5 button. I don't have to look down at my keyboard whenever I press the Up/Down buttons).

    Try it out, see how it works.


    ...andddd, I don't know of any other solution. Microsoft needs to design Windows to send you to the correct location. I don't know of any other fix.
      My Computer


  9. Posts : 989
    Microsoft Windows 10 Home
       #19

    kitpzyxmsir said:
    That's not the case.

    I guess my attempts to describe precisely what's happening haven't painted a clear picture. I'm really not trying to nit-pic, but when you mention "bottom of the list of items", are we saying the "end" of the list?

    Immediately after I paste a file into this folder that is in View > List mode, I am "auto-scrolled" all the way to the right, to the very "end" of the file list. However, the file I pasted is not visible in that folder's location.

    The file I pasted is instead taken to it's proper alphabetical position in that list/collection of files, forcing me to scroll to the left/backwards to find it. The good news is that there is at least a "next best thing" press F5 option. Thank you for that.

    Maybe I'm missing some logic here, but the fact that it operates this way make no sense to me.
    I don't use list view much, but in limited testing, I don't see this behavior -- for me, the pasted item is placed in its "proper" place in the list, hightlighted, and the window scrolled hortizontally (if necessary) to bring the item into view.

    • Have you verified the folders are set to sort on Name?
    • In Folder Options -> View tab, what option do you have selected for "When typing into list view"?


    And this is, I think, a long shot. But if you could run the following PowerShell the next time a folder exhibits the errant behavior, I'd be curous to as to the output. Wondering if somehow the NoEnumRefresh flag has been set for the folders:

    Code:
    Add-Type -TypeDefinition @'
    [System.FlagsAttribute]
    public enum FWF : uint {
        None                = 0x00000000,
        AutoArrange         = 0x00000001,
        AbbreviatedNames    = 0x00000002,
        SnapToGrid          = 0x00000004,
        OwnerData           = 0x00000008,
        BesTfitWindow       = 0x00000010,
        Desktop             = 0x00000020,
        SingleSel           = 0x00000040,
        NoSubfolders        = 0x00000080,
        Transparent         = 0x00000100,
        NoClientedge        = 0x00000200,
        NoScroll            = 0x00000400,
        AlignLeft           = 0x00000800,
        NoIcons             = 0x00001000,
        ShowSelAlways       = 0x00002000,
        NoVisible           = 0x00004000,
        SingleClickActivate = 0x00008000,
        NoWebView           = 0x00010000,
        HideFilenames       = 0x00020000,
        CheckSelect         = 0x00040000,
        NoEnumRefresh       = 0x00080000,
        NoGrouping          = 0x00100000,
        FullRowSelect       = 0x00200000,
        NoFilters           = 0x00400000,
        NoColumnHeader      = 0x00800000,
        NoHeaderInAllViews  = 0x01000000,
        ExtendedTiles       = 0x02000000,
        TriCheckSelect      = 0x04000000,
        AutoCheckSelect     = 0x08000000,
        NoBrowserViewState  = 0x10000000,
        SubsetGroups        = 0x20000000,
        UseSearchFolder     = 0x40000000,
        AllowRtlReading     = 0x80000000
    }
    '@
    @((New-Object -com shell.application).Windows()).ForEach{[FWF]($_.Document.FolderFlags)}
    Just copy and paste the entire block into a PowerShell window and press Enter.
      My Computer


  10. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #20

    First of all, let me thank you guys for spending all this time with all your detailed help and investigation skills on a subject, while important to me, might be described by some as trivial.

    As I said, I learned a lot of good stuff here that I will use going forward.

    As it turns out, today, it's working, even tho, when I checked, the properties for that folder, it mysteriously, after all this, had "also apply this template to all subfolder"s unchecked! I have no clue.

    pepanee said:
    But check this out: Once you paste a file, and you are sent all the way to the right, you can press the Down button on your keyboard, and you will be sent exactly to the correct location of that file, except you will have the file under it selected.
    Instead, you can press Down, then press Up, on the keyboard, and you should be fine. (instead of looking down at your keyboard, to look for that F5 button. I don't have to look down at my keyboard whenever I press the Up/Down buttons).

    Try it out, see how it works.
    If/when things revert back, I'll try that.

    KeithM said:
    [LIST]
    Have you verified the folders are set to sort on Name?
    Yes

    KeithM said:
    In Folder Options -> View tab, what option do you have selected for "When typing into list view"?
    Pasting a file into a folder set for Views &gt; List-view.png

    Ya know, I had to laugh at myself, realizing that I never knew typing into list view was a search option

    KeithM said:
    And this is, I think, a long shot. But if you could run the following PowerShell the next time a folder exhibits the errant behavior, I'd be curous to as to the output. Wondering if somehow the NoEnumRefresh flag has been set for the folders:
    I definitely will.

    Thanks again
      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 09:34.
Find Us




Windows 10 Forums