I need this when config Listary's custom command to load
Rconsole within Explorer, with environment variable
R_USER set to current directory for this very command.
What I currently use is effectively same as
cmd /C "set R_USER=%path%&& C:\path\to\Rgui.exe"
(which I learn from here to set environment variable.)
It works fine, except open an extra window for cmd itself. which adds hassle to switch application with Alt-Tab.
How can I achieve same workflow but without open the window for cmd itself?
P.S. (Listary handle the substitution part and run the specified command).