Softlink/Symlink in Windows (NTFS drive)

Here are some useful symlink examples.

MinGW GNU Make

The default GNU Make filename in MinGW is mingw32-make.exe, quite inconvenient. Let’s assume it’s at C:\mingw\mingw64\bin, then from Command Prompt:

cd C:\mingw\mingw64\bin

mklink make.exe mingw32-make.exe

/d is for directory symlink.

mklink /d %HOMEDRIVE%%HOMEPATH%\data D:\data

Is an example softlink on Windows for linking:

D:\data (e.g. external USB drive)



so that your Python programs work with the same ~/data path in Windows and Linux.

ln -s /media/myusbdrive/data ~/data

Notice that the order of target arguments are reversed between Windows and Linux.

Leave a Comment