The file name(s) would be too long for the destination folders but I can't edit it

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)

maja

Posted 2014-06-30T14:17:15.880

Reputation: 307

Question was closed 2014-07-02T08:14:37.653

you can always try booting off a linux live CD, and see if you can edit the filename there. – Frank Thomas – 2014-06-30T14:28:28.930

@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 – 2014-06-30T15:06:32.173

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 – 2014-06-30T15:35:31.083

@maja If you have solved the problem then you can answer and accept your own question. It would be helpful for future users. – abhishekkannojia – 2014-06-30T18:01:20.720

Answers

0

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

maja

Posted 2014-06-30T14:17:15.880

Reputation: 307

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

SSAURABHH

Posted 2014-06-30T14:17:15.880

Reputation: 435

@SSAURAABHH I tried ren [filepath]/. file.wav but I obtain "The system cannot find the file specified." – maja – 2014-06-30T14:36:42.660

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 – 2014-06-30T14:40:54.873

Even like this all I can obtain is "The system cannot find the file specified." – maja – 2014-06-30T14:46:20.763

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 – 2014-06-30T14:46:30.787

"The system cannot find the file specified." if u get this means u r not doing in a right way! – SSAURABHH – 2014-06-30T14:48:16.437

don't use [filepath]! use as i described! – SSAURABHH – 2014-06-30T14:50:27.327

@SSAURABAHH I tried the methods you suggested but they didn't work.I would be curious to know the reason but in the end I did edit the files from a different OS. – maja – 2014-06-30T15:08:52.900

@SSAURABAHH btw, propoerties wasn't available from the context menu as rename wasn't – maja – 2014-06-30T15:11:15.793

then attach some screenshots to let me and other know what problem exactly it is? if not want to do so try my last recommendation,download unlocker 1.9.2,right click on that file and click unlocker then select rename then press unlock all!may be it work! – SSAURABHH – 2014-06-30T15:14:19.783

@SSAURABAHH I would add some screenshots, but I'm not reputable enough. Anyways I did solve the problem editing the file from another OS. Now, it's accessible and editable from Windows too. (It has been a long time since I used Unlocker, I'm not sure it would have helped in this case, the problem here was that the renaming tools of the system were not accessible) – maja – 2014-06-30T15:34:30.873

Glad to know u have solved the problem, try tweaking.com's all in one windows repair software to repair that system problem(it helps me many times ) :) i'll delete this answer after your next comment! :) – SSAURABHH – 2014-06-30T15:38:32.757

All right, I posted the Linux answer, still I'd keep the hint about tweaking.com because not everyone has a Linux partition sitting around whenever need arise ;) – maja – 2014-06-30T20:24:00.477

of course :-D Tweaking.com all in repair is very good tool! :-) – SSAURABHH – 2014-07-01T06:56:50.403