How to properly use Run, Runq, Run Quote() ?
Posted: 29 Jan 2025 14:46
Can smbd please make a "300% guaranteed to work" instruction on how to use these?
Every single time i deal with this command(variation), i stumble upon problem to make it work. Obviously it's 'cause i'm noob and don't get something, plus complexity of quote-rules, but somehow that's The Only command i ever have problem with, ending up spending hours, trying all variants i can imagine, till "maybe" one will work.
The legend:
<tool>
<target>
<result>
==all these paths can have spaces!
<-param1> <-param2> (several of those separated by spaces)
<work_dir> (?idiotic parameter seem to be demanded only for executables, or not)
So how would it look like, with all the properly added quotes, to work with mentioned: Run, RunQ, Run Quote() ?
Sorry if you find this question dumb/stupid(just pass by). After recently spending again couple hours and not finding a working way, i've got quite angry. Yet i understood that it's easier to make an LNK file and open that, than use Run command.(which definitely doesn't look normal)
So i wanna finally understand the proper always working way to use Run variations for complex run requests with additional paths and parameters.
P.S. Please don't send me to lax(). I've found it via search along with lots of topics that didn't answer my goal-question. Have no clue what lax is, and even though it seems to do the work much easier -- i really want to settle the deal of problem with these 3 Run variations, not just find a code variant that works and settle down.(as most users did in search results)
Every single time i deal with this command(variation), i stumble upon problem to make it work. Obviously it's 'cause i'm noob and don't get something, plus complexity of quote-rules, but somehow that's The Only command i ever have problem with, ending up spending hours, trying all variants i can imagine, till "maybe" one will work.
The legend:
<tool>
<target>
<result>
==all these paths can have spaces!
<-param1> <-param2> (several of those separated by spaces)
<work_dir> (?idiotic parameter seem to be demanded only for executables, or not)
So how would it look like, with all the properly added quotes, to work with mentioned: Run, RunQ, Run Quote() ?
Sorry if you find this question dumb/stupid(just pass by). After recently spending again couple hours and not finding a working way, i've got quite angry. Yet i understood that it's easier to make an LNK file and open that, than use Run command.(which definitely doesn't look normal)
So i wanna finally understand the proper always working way to use Run variations for complex run requests with additional paths and parameters.
P.S. Please don't send me to lax(). I've found it via search along with lots of topics that didn't answer my goal-question. Have no clue what lax is, and even though it seems to do the work much easier -- i really want to settle the deal of problem with these 3 Run variations, not just find a code variant that works and settle down.(as most users did in search results)