Rename the directories in the directory path to a single character.

For example.

C:\Directory\Path\Along\The\Way\Can\Get\Too\Long\When\The\File\With\The\Really\Long\Name\Is\Nested\Too\Deep\<File-With-Long-Name>

Directory path becomes C:\x\x\x\x\x\x\x\x\x\x\x\x\<File-With-Long-Name>