Defense in depth — the Microsoft way (part 23): two quotes or not to quote…

Posted by Stefan Kanthak on Dec 15

Hi @ll,

some Windows commands/programs fail when (one of) their
command line argument(s) is/are enclosed in quotes; for
example:

%SystemRoot%System32FontView.Exe “<pathname>.TTF”
%SystemRoot%System32FONTVIEW.Exe /P “<filename>.TTF”
%SystemRoot%System32RunDLL32.Exe %SystemRoot%System32SetupAPI.Dll,InstallHinfSection <section> <flags>
“<pathname>.INF”

The failure messages shown…

Leave a Reply