systemroot preferable to windiw

This commit is contained in:
Karl Yngve Lervåg 2014-08-02 14:19:17 +02:00
parent bef84296d8
commit f9fe109baa

View File

@ -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)