Parsing path\filename variable as argument to a program

Questions about Wine on Linux
Locked
HunHKPK
Newbie
Newbie
Posts: 2
Joined: Sun Jan 08, 2023 12:21 pm

Parsing path\filename variable as argument to a program

Post by HunHKPK »

Is there any way to parse a variable to a program that contains path\filename information?
For example

Code: Select all

wine start "C:\\Program Files\\IrfanView\\i_view64.exe %f
Where %f refers to /home/usermame/Pictures/b0003.JPG. (or Z:\home\username\Pictures\b0003.JPG)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Parsing path\filename variable as argument to a program

Post by jkfloris »

The program expects a Windows folder name. The program winepath can convert a Linux directory name into a Windows directory name.

See: viewtopic.php?p=131901#p131901 for some examples.
HunHKPK
Newbie
Newbie
Posts: 2
Joined: Sun Jan 08, 2023 12:21 pm

Re: Parsing path\filename variable as argument to a program

Post by HunHKPK »

WoW! Fantastic, THX a lot!
Locked