Results 1 to 4 of 4

Thread: Error "the file name you specified is not valid or too long-how to delete"

  1. #1
    Join Date
    Sep 2011
    Posts
    1

    Error "the file name you specified is not valid or too long-how to delete"

    Dear All,

    On my server, On d:\ drive there is a folder <folder name>. when I deleting that folder error is coming like this "the file name you specified is not valid or too long-how to delete". So pls help me to delete this folder

    Thanx
    Chandimal

  2. #2
    Join Date
    May 2008
    Posts
    5,811

    Re: Error "the file name you specified is not valid or too long-how to delete"

    Well, is the filename is minimum in length and if not then try to do it once. If it is already the minimum length, you need to reduce the length of the PATHNAME. Share a folder close to the file, map a drive to it from another machine, and copy the file from there. After that try to delete the folder and check if that works out.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,026

    Re: Error "the file name you specified is not valid or too long-how to delete"

    You might have already known that deleting the file doesnt work so the best option is to rename it. You can try to rename directories or the file name to make the total count below the character limit. It can be easily done in Windows Explorer or with command line. You just have to choose a folder and then rename it to a single character and then do the same thing until the file path length has dropped accordingly.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Error "the file name you specified is not valid or too long-how to delete"

    If the files that you are having problem with has characters from another language which cannot be read by your pc then you are suppose to get this kind of error message. Also make sure that the total path length is not more than 255 characters, if so then try to rename some of the folders to some smaller names. Or else just use the command prompt to delete the files.

Similar Threads

  1. Replies: 3
    Last Post: 31-12-2013, 10:36 AM
  2. Replies: 7
    Last Post: 28-03-2012, 06:32 PM
  3. Replies: 4
    Last Post: 12-02-2011, 07:10 AM
  4. Replies: 3
    Last Post: 17-01-2011, 07:41 PM
  5. Replies: 4
    Last Post: 13-11-2010, 12:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,728,392,684.37063 seconds with 17 queries