Because robocopy is not a windows specific utility, it does not adhere to the 260 character limit (unless you want to using the /256 switch) meaning that you can set it off and it will grab all of the files and folders based on the switches that you use for it. So how do we accomplish this feat? The answer lies in a freely available (and already installed) piece of software called robocopy.exe. ![]() What I a going to do is show you how to get around this issue and see all of the folders and files as well as giving you a total size of a given folder. I won’t go into the technical reason for this issue, but you can find one conversation that talks about it here. Seeing this message means heartburn because now we are unable to get a good idea on just how many files (and how big those files are) when performing the folder query.Ī lot of different reasons for what causes this issue are available, such as users that are mapped to a folder deep in the folder structure using a drive letter and then continuing to build more folders and sub-folders underneath each other. The infamous PathTooLongException that occurs when you hit the 260 character limit on a fully qualified path. \PowerShellScripts | Select -Expand Fullname
0 Comments
Leave a Reply. |