Softlinks are useful in any operating system to shorten long, complicated pathnames like `C:/home/user/where/is/my/file/now/data` to just `C:/data` In Windows, the soflink creation syntax is

``mklink LINK TARGET``

Here are some commonly useful examples of softlinks in Windows.

## MinGW GNU Make

The default GNU Make filename in MinGW is `mingw32-make.exe`, which is quite inconvenient.

``````cd C:\mingw\mingw64\bin

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

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

to

`~/data`

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

## Notes

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

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