Overview
| Artifact ID: | 9bc0bbb0dada3f85031847ada6f695f7301f26704806a7a10534effb427f40dc |
|---|---|
| Ticket: | efd15d181ae9be3b538eb23534d37d8f1d96cd57
problem with % in [exec] on windows |
| User & Date: | anonymous on 2020-07-27 08:25:14 |
Changes
- icomment:
What a really wanted to do: catch {exec WMIC PROCESS WHERE "NAME!='WMIC.EXE' AND \ COMMANDLINE LIKE '%MyJarFile.jar%-p 12345%'" \ GET PROCESSID /FORMAT:VALUE} result Percentage sign in Windows WMIC command stands for wildcard and not for Windows variable. Therefore using "env" does not help here. How is it possible to pass-through plain percentage sign? Maybe by masking it somehow? Seems no good decision to inhibit that totally . - login: "anonymous"
- mimetype: "text/plain"