3

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

On Linux it’s easy:

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

1 Answer 1

3

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"
)
1

You must log in to answer this question.

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