Winepetah usage to get linux file names

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
pquessev
Newbie
Newbie
Posts: 1
Joined: Mon Mar 25, 2019 5:37 am

Winepetah usage to get linux file names

Post by pquessev »

Hello,

I am running Wine 4 on Ubuntu 18. I use a specific Windows tool that processes files passed as options, and produces result files. This tool works well under Wine. To use it from the Linux tree I need to transform the names of the files from Linux to Windows and vice versa. I am using the winepath command under Linux.

I may have missed something but I can not get winepath to return the real name of the linux file:
============
> winepath -w /tmp
Z:\tmp
> winepath -u z:\\tmp
/home/user/.wine/dosdevices/z:/tmp
============

I can call realpath on the path returned by winepath, but I was wondering if there was another solution:
============
> realpath /home/user/.wine/dosdevices/z:/tmp
/tmp
============
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Winepetah usage to get linux file names

Post by DarkShadow44 »

Don't think winepath offers this functionality. Why do you need that?
Locked