Uniform variant of a command line as a single argument for the mshta.exe executable and other cases
#11
andry81
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/andry81/contools/tree/HEAD/scripts/tools/ToolAdaptors/hta/Samples/mshta_cmd_elevate.bat
The
__QARG0__forms a Windows Batch compatible command line with escapes, where:\""is a single nested",\""""is a double nested",\""""""is a triple nested"and so on.Note
The
\""sequence always have has an even number of double quotes to always quote a string in between because thesetcommand argument is started by a quote.Caution
\"",\"""", etc expressions only has meaning inside a.batscript.Any attempt to use it outside of a script (including a terminal command line) will lead into incorrect expansion because a terminal command line or an
.execommand line has their own different expansion rules including command line of thecmd.exeexecutable.Output:
Beta Was this translation helpful? Give feedback.
All reactions