systemroot preferable to windiw
This commit is contained in:
parent
bef84296d8
commit
f9fe109baa
@ -266,7 +266,7 @@ function! s:latexmk_set_pid(data) " {{{1
|
|||||||
silent execute '!cmd /c "wmic process where '
|
silent execute '!cmd /c "wmic process where '
|
||||||
\ . '(CommandLine LIKE "latexmk\%' . a:data.base . '\%") '
|
\ . '(CommandLine LIKE "latexmk\%' . a:data.base . '\%") '
|
||||||
\ . 'get ProcessId /value'
|
\ . 'get ProcessId /value'
|
||||||
\ . '| \%WINDIR\%\system32\find "ProcessId" '
|
\ . '| \%systemroot\%\system32\find "ProcessId" '
|
||||||
\ . '>' . tmpfile . ' "'
|
\ . '>' . tmpfile . ' "'
|
||||||
let pids = readfile(tmpfile)
|
let pids = readfile(tmpfile)
|
||||||
let a:data.pid = strpart(pids[0], 10)
|
let a:data.pid = strpart(pids[0], 10)
|
||||||
|
Loading…
Reference in New Issue
Block a user