Monday, April 5, 2010

how to pass the assigned string to system call?

Hi,

I am mapping a commnd to dos findstr. In my script, I have (rootpath
is c:\project)

let files = rootpath . '\cscope.files'
let scmd = 'findstr /f:files /n ' . pattern
let result=system(scmd)

However, it prints FINDSTR: cannot read file list from files. This is
caused by the /f:files switch. the files does not expand to c:\project
\cscope.files. How can I solve this problme by passing the information
to the findstr?

Thanks

Frank

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

To unsubscribe, reply using "remove me" as the subject.

No comments: