Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 13565

How to delete files with long path names

$
0
0

I have thousands of files on long paths

i´ve tried to delete using forfiles and powershell

get-childitem -include thumbs.db -recurse | foreach ($_) {remove-item $_.fullname}

error:

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

PathTooLongException

how can i delete all files, even with long paths?


Viewing all articles
Browse latest Browse all 13565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>