I would like to copy a file as a linmk to a diffferent directory is it possible in the command window to do that?


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

  • 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



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.

  • 1
    Symlinks do not exist in XP. Only Vista+ – surfasb Jul 11 '11 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.