![]() Just open the search in Windows, type cmd and hit Enter. These instructions are for the command line. to the folder you want to delete, the target.Īfter executing robocopy, the target directory would be empty as well.Cygwin may work, but you may not have it installed. There is no need to use 7zip or any other 3rd party tool. This issue is easily solved using robocopy, preinstalled since Windows Vista, launched in 2006.įor example, rmdir /S /Q has been reported to fail in some cases. There is no need to install any program for solving this issue. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.ĭoes anyone know of any tools or easy ways to get around this delete error without having to manually find the problem files and move/rename them? Trying Remove-Item in powershell gives the following error: Remove-Item : The specified path, file name, or both are too long. If I try deleting the directory from Explorer I get the error Cannot delete : The file name you specified is not valid or too long. ![]() And I'm trying to avoid any manual process (other than triggering a single command) to actually delete them. This is the same errors this question, but the answers there don't really work for me as I'm dealing with a directory, not a file, and I don't always know what specific files or subdirectories are causing the problem. ![]() Our ant script is somehow able to delete them when doing a clean, but sometimes I need to delete the workarea directory (where all the temp files go) without actually doing a full clean from ant. Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit. Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created. ![]()
0 Comments
Leave a Reply. |