A
AndyHancock
I used a unix utility (cygwin's tar) to copy a file tree from a hard
drive to a stick. One of the things I learned was that file links/
shortcuts contain a full path to their target rather than a relative
path. These are the files created by "Paste shortcut" or Shift-Ctrl-
Drag. After the file tree is copied to the stick, all such file links
no longer point to valid destinations.
I used a text editor like vim to look at the file shortcuts, and I can
see the full path to the target. Is there a hopefully simple way to
convert these paths to relative paths? I guess that would also depend
on whether file shortcuts can even point to targets using relative
paths.
Moreover, is there a hopefully simple way to traverse a file tree and
convert all file shortcuts to use relative paths?
Failing that, is there a simple way to replace all file shortcuts with
their target files throughout a subtree in the file hierarchy?
I am looking to do this on both Windows 2000 and Windows XP.
drive to a stick. One of the things I learned was that file links/
shortcuts contain a full path to their target rather than a relative
path. These are the files created by "Paste shortcut" or Shift-Ctrl-
Drag. After the file tree is copied to the stick, all such file links
no longer point to valid destinations.
I used a text editor like vim to look at the file shortcuts, and I can
see the full path to the target. Is there a hopefully simple way to
convert these paths to relative paths? I guess that would also depend
on whether file shortcuts can even point to targets using relative
paths.
Moreover, is there a hopefully simple way to traverse a file tree and
convert all file shortcuts to use relative paths?
Failing that, is there a simple way to replace all file shortcuts with
their target files throughout a subtree in the file hierarchy?
I am looking to do this on both Windows 2000 and Windows XP.