Here you go:
dir /s /b /a-d "dir c:\Users\John Doe" > FileList.txt
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would an output txt file to list the entire path using a windows command line to a txt file.
I want the output to be like this: C:\Folder 1\folder 2\file.doc
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Here you go:
dir /s /b /a-d "dir c:\Users\John Doe" > FileList.txt
This command line worked but what about paths longer than +260 characters only?
Some aspects of Windows support long paths, others don't. I recommend you keep your paths below 255 characters. If you must go beyond then this Google search will yield a number of hints:
Windows long paths
This command line worked but what about paths longer than +260 characters only?