Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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*

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/fsutil.mspx?mfr=true

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
1  
Symlinks do not exist in XP. Only Vista+ –  surfasb Jul 11 '11 at 19:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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