Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a couple of .swf files (not created by me) that are linked together not relatively, but absolutely.

By that, I mean that the file D:/file1.swf links to D:/file2.swf through an absolute link:


Thus, when I move D:/file1.swf to E:/Swf Collection/file1.swf, and D:/file2.swf to E:/Swf Collection/file2.swf, the hyperlink stopped working (it now points to E:/file2.swf instead of E:/Swf Collection/file2.swf).

How do I simulate the folder E:/Swf Collection such that it behaves like a top-level drive so that the hyperlink would work?

share|improve this question
up vote 4 down vote accepted

You can use the old subst command (available since ancient DOS times).

cd e:
subst d: "Swf Collection"

Example usage of subst can be found here. That documentation is for XP, but I just tested it on windows 7 and it also works there.

share|improve this answer
Ah! The classics! It'll be a sad day indeed when Microsoft users lose the command-line! A very useful tool is subst. – KevinM Feb 15 '13 at 14:31
But when the file is moved to another computer, it would no longer work right.. – Pacerier Feb 15 '13 at 14:40
Correct. You are making the changes to your computer and they take effect on your computer only. If you want to move the SWF files to other computers and have them work there then you want to change the SWF files. Edit them and replace the absolute paths to relative paths. (But that was not the question asked in the post). – Hennes Feb 15 '13 at 14:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .