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 would like to copy a file as a linmk to a diffferent directory is it possible in the command window to do that?

share|improve this question

It's hard to decipher your message, but I suspect that you are looking for junction.exe.

share|improve this answer
Junction is only for folders. – surfasb Jul 11 '11 at 18:38
Oh yeah, so it is. – paradroid Jul 11 '11 at 19:02

For files in XP, you are looking for hardlinks. Junction only does folders. In XP, you'll need to use the fsultil hardlink create destinationName *sourceFileName*

share|improve this answer

Under Windows 7 (and I presume Vista), xcopy accepts a new /b switch that, according to the help "Copies the Symbolic Link itself versus the target of the link.

share|improve this answer
Symlinks do not exist in XP. Only Vista+ – surfasb Jul 11 '11 at 19:15

You must log in to answer this question.

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