<i>problem with % in [exec] on windows</i> status still Pending with 3 other changes
by
.
D 2020-07-27T08:25:14.864
J icomment What\sa\sreally\swanted\sto\sdo:\r\n\r\ncatch\s{exec\sWMIC\sPROCESS\sWHERE\s"NAME!='WMIC.EXE'\sAND\s\\\r\n\tCOMMANDLINE\sLIKE\s'%MyJarFile.jar%-p\s12345%'"\s\\\r\n\tGET\sPROCESSID\s/FORMAT:VALUE}\sresult\r\n\r\nPercentage\ssign\sin\sWindows\sWMIC\scommand\sstands\sfor\swildcard\sand\snot\sfor\sWindows\svariable.\sTherefore\susing\s"env"\sdoes\snot\shelp\shere.\r\n\r\nHow\sis\sit\spossible\sto\spass-through\splain\spercentage\ssign?\sMaybe\sby\smasking\sit\ssomehow?\sSeems\sno\sgood\sdecision\sto\sinhibit\sthat\stotally\s.
J login anonymous
J mimetype text/plain
K efd15d181ae9be3b538eb23534d37d8f1d96cd57
U anonymous
Z 48ce4a827edfe21de9e01c3ac2433600