Jump to content

Windows 10 Can't rename file: "The file name you specified is not valid or too long."


Recommended Posts

I have a bunch of files on a second hard drive. The files were named on Linux and a bunch of them contain characters that Windows disallows. Apparently Windows doesn't allow removing those characters either because I get that error in the title whenever I try. I tried powershell "rename-item" and it gives the same error. How can I rename these goddamn files? I really don't want to have to reboot and use a live distro to rename them because there are so many and I'm in the process of going through them.

Link to comment

Coming up with nothing so far. No special syntax or command seems to work, and 3rd party "file unlock" software seem unable to work with these files for some reason. These files have question marks in them, btw. You'd think some application would be able to open them and copy them byte for byte or something... So far it's looking like a live distro is the only solution. ?

Link to comment
On 6/15/2020 at 4:56 PM, Seelenlos said:

and a bunch of them contain characters that Windows disallows

:classic_huh: I wonder what those are ? ?

Anyway, I would just name them on the Linux system into something that Windoze10 can digest and transfer them to your W10 again.

 

Link to comment

It's my music library. I keep finding songs that have illegal characters and Windows can't do a single thing with them, not even delete them. I keep searching google using different terms but I'm not finding anything useful. I'm surprised there isn't software specifically for this problem. I'll just use a Linux distro and find something that can do a search & replace.

Link to comment

The whole thing smacks of negative marketing. You can be the good guy and win the affections of potential users, or be the bad guy and discourage the use of competing options. Guess which route Microsoft took?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use