Like a CLI noob does, I often change directories by using the dragging the target folder into a command prompt to get its path.
What's annoying, however, is that the path isn't wrapped in quotes, which are annoying to add manually.
But what is even stranger to me is that sometimes quotes are added to the folder/filepath automatically.
This doesn't seem to happen with any real consistency, but I have had it happen on both my work and home computers.
So, how can I reliably get a filepath to be wrapped in quotes before it's inserted in my prompt?
drag & drop
a files&b.txt
(created and renamed for this purposes only) with gloomy resultC:\bat\COCL\s&b.txt
: non-wrapped in quotes