Get the full path referenced by .lnk with wsl

Installation (lnkinfo)

$ sudo apt install -y liblnk-utils

Run

$ wslpath -a $(lnkinfo /path/to/src.lnk | grep 'Local path' | sed 's/.*: //')
/mnt/c/path/to/dst

Recommended Posts

Get the full path referenced by .lnk with wsl
List all files under the current directory line by line with full path
[Python] Get the official file path of the shortcut file (.lnk)
File renaming using the full path received by the shell
Maya | Get the workspace path
[Python] Get the script execution directory with an absolute path
Get the desktop path in Python
Get the weather with Python requests
Get the weather with Python requests 2
Get the script path in Python
Get the desktop path in Python
Get the file path using Pathlib
[Python Kivy] How to get the file path by dragging and dropping
Get property information by scraping with python
[Python] Get the variable name with str
Install by specifying the version with pip
Get the path to the systemd unit file
Get started with the documentation tool Sphinx
Get holidays with the Google Calendar API
Import by directly specifying the directory path
How to get started with the 2020 Python project (windows wsl and mac standardization)
The easiest way to get started with Django
Get the latest AMI information with the AWS CLI
BeautifulSoup trick: Decide the Tag by specifying the path
Maya | Get the workspace path
Get the latest Linux kernel version with Arch Linux
To get the path of the currently running python.exe
Find the shortest path with the Python Dijkstra's algorithm
Broadcast operation by raising the dimension with np.newaxis