-1

I copied some directories from a now-defunct Mac laptop. I am trying to open one of the files (a PDF), but Acrobat won't open it because the name is too long.

I am trying to rename the file to a shorter name, but I cannot. Explorer won't let me, again, because of the long name.

I tried renaming it in cmd.exe using the 8+3 name, but none of the files from Mac have 8+3 names. That means that there is no way to rename it using the short name.

What else I can do?

Miguel
  • 1
  • 1
  • 2
  • 1
    https://superuser.com/q/755298/565702 – Alex78191 May 29 '17 at 02:45
  • 1
    https://superuser.com/q/78434/241386 – phuclv May 29 '17 at 03:47
  • The problem is the files don't have short names, so the solutions for that article don't work for me. – Miguel May 29 '17 at 13:20
  • Then you have to shorten the names of the folders and files. That is the solution. – music2myear May 30 '17 at 16:42
  • @Miguel where in the other answers say that the only way is to use the 8.3 name? Did you read any of the duplicate questions? There are various solutions like [subst the folder to a drive character, create a soft link or simply append `\\?\\` to the path](https://superuser.com/a/811155/241386) – phuclv Jun 02 '17 at 10:34

2 Answers2

1

An annoying run around is to use a live cd, such as parted magic. This will allow you to rename the file then copy as needed.

JustAGrump
  • 770
  • 8
  • 12
0

What worked for me was a combination of zipping the directory with the file, then change the file name in the zip application. Then I used robocopy to remove the old file.

Thanks everyone for the help!

Miguel
  • 1
  • 1
  • 2