3

On Windows 10, how do I symlink several files at once?

On Linux it’s easy:

ln -s source/directory/* destination/directory/
2

Windows has no equivalent command. You could use a .bat file similar to this:

@echo off
for /f %%f in ('dir /b "C:\path\to\source\directory"') do (
    mklink "C:\path\to\destination\directory\%%f" "C:\path\to\source\directory\%%f"
)
| improve this answer | |

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.