Overview
| Artifact ID: | 7747bd6406ff56af393aa49a843039f40360d988ad342ebd69063f2cb3f7b8bb |
|---|---|
| Ticket: | efd15d181ae9be3b538eb23534d37d8f1d96cd57
problem with % in [exec] on windows |
| User & Date: | anonymous on 2020-07-28 07:28:55 |
Changes
- icomment:
Not double quotation marks are making troubles but percentage signs! Tcl version: 8.6.4.1 Tcl command: exec wmic process where {commandline like '%wmic%'} get processid,commandline Command output: CommandLine ProcessId C:\WINDOWS\System32\Wbem\wmic.exe process where "commandline like '%wmic%'" get processid,commandline 2884 -> Result is correct Tcl version: 8.6.10.1 Tcl command: exec wmic process where {commandline like '%wmic%'} get processid,commandline Command output: No instances available -> Result is wrong Command does not contain any double quotation mark to be escaped or not! Either escaping percentage signs or single quotation marks results in wmic error message. So how should wmic command now look like in order to get correct result as before? Any working solution would be appreciated. - login: "anonymous"
- mimetype: "text/plain"