Monday, January 31, 2022

junctions and links on windows

 there is no hard link in windows, but there is junction.


By creating a junction, it will show as shortcut but all the copy commands will work.


Example: 


mklink /J "C:\Users\Administrator\junction_folder" "C:\Users\Administrator\original_folder"


Reference: https://superuser.com/questions/343072/how-to-create-a-directory-hard-link-in-windows/1240606#:~:text=There%20is%20no%20such%20thing%20as%20a%20hard%20link%20to,with%20mklink%20%2FJ%20link_name%20target_dir%20.

No comments:

Post a Comment