1

I want to move a file but its filepath/filename is too long.

Its context menu only shows a reduced list of options and rename isn't in the list, pressing F2 after selecting the file in the file explorer doesn't yield any result and trying the RENAME command from command prompt just yields a "Filename or extension is too long" error.

How can I rename this file so that it becomes editable?

(The filepath to this file includes some chinese characters but the command prompt chcp is already set on 950 which is the proper value for them)

4
  • you can always try booting off a linux live CD, and see if you can edit the filename there. Jun 30, 2014 at 14:28
  • @Frank-Thomas I booted in a Debian/Linux system and I could open and edit the files without any problem. They were plain-text files so I renamed them adding the .txt extension and now they are useable from Windows too. I lost the line breaks but that's fine.
    – maja
    Jun 30, 2014 at 15:06
  • My fault, this was an audio file not a text file. Anyways it's editable and accessible after using a different OS to rename it.
    – maja
    Jun 30, 2014 at 15:35
  • @maja If you have solved the problem then you can answer and accept your own question. It would be helpful for future users. Jun 30, 2014 at 18:01

2 Answers 2

0

Open command prompt as from that path and Use this command- (if there is one file in that folder)

ren *.* filename.extension

or open command prompt as administrator from any other path(like from system32) use this

ren "filepath with extension" filename.extension
13
  • @SSAURAABHH I tried ren [filepath]/*.* file.wav but I obtain "The system cannot find the file specified."
    – maja
    Jun 30, 2014 at 14:36
  • Open command prompt from that folder in which the file is!if your file is situated at folder1,then press shift+right click,you get a option open command line from here then use this command line!
    – SSAURABHH
    Jun 30, 2014 at 14:40
  • Even like this all I can obtain is "The system cannot find the file specified."
    – maja
    Jun 30, 2014 at 14:46
  • or i'm telling you a simple method,maybe it work! open property of that file and rename from there(in general tab,the first line),ensure that file is not in use!
    – SSAURABHH
    Jun 30, 2014 at 14:46
  • "The system cannot find the file specified." if u get this means u r not doing in a right way!
    – SSAURABHH
    Jun 30, 2014 at 14:48
0

I booted in a Debian/Linux system and I could open and edit the files without any problem.

0

Not the answer you're looking for? Browse other questions tagged .