Tyilo
Tyilo

Reputation: 30122

Get Wine path of file

Is it possible to get the Wine path to a file on the current OS?

Example:

wine-get-path ~/foo.txt # Outputs: Z:\\Users\Tyilo\foo.txt
wine-get-path ~/.wine/drive_c/windows/explorer.exe # Output: C:\\windows\\explorer.exe

where wine-get-path would be the function I need.

Upvotes: 7

Views: 3978

Answers (1)

Tyilo
Tyilo

Reputation: 30122

The answer is winepath -w foofile

Upvotes: 7

Related Questions