How to resolve a program caption into its exe path?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

How to resolve a program caption into its exe path?

Post by SkyFrontier »

run notepad; // opens C:\WINDOWS\NOTEPAD.EXE
> so how I can determine that 'notepad' has that given path?

Reason: I'd like to circumvent current run([wait]) inability to work with say "run winrar, , 1;", resolving in advance that 'winrar' points to 'c:\programs\winrar\winrar.exe', for instance, then using it as a value to a variable like "run $rar, , 1;", being $rar = 'c:\programs\winrar\winrar.exe', then.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: How to resolve a program caption into its exe path?

Post by Marco »

Closest thing that comes to my mind

Code: Select all

text get("regcmd", "rar");
and then you play with gettoken.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: How to resolve a program caption into its exe path?

Post by SkyFrontier »

Hey, that was smart, Marco!
Thanks a bunch!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: How to resolve a program caption into its exe path?

Post by Marco »

You're welcome :)
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Post Reply