in reply to Shorten windows paths too long
I suppose that you could make some sort of "movelong" command that copies the file twice. CD down into the tree to target, then copy file from current directory to some path like C:/temp, then traverse tree to reach new directory and copy from C:/temp to current directory?
Update: NTFS maintains a "short" filename for backward compatibility (unless that feature is turned off on your system). how Windows generates short filenames. To see what these are do a "dir /x". There should be some way to assemble enough of these short names together to create a path that fits within 255 chars with target file being a "long name".
I hadn't counted characters in your path. I just assumed that you were right about the 255, but your path does indeed appear to be short enough as per tye's post. If any file in the path is open, even for read, windows won't let you rename the path, but you should get an error message.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Shorten windows paths too long
by afoken (Chancellor) on Aug 17, 2010 at 20:29 UTC | |
by gj2666 (Beadle) on Aug 18, 2010 at 15:25 UTC |