On 2010-04-05, "[email protected]" <[email protected]> wrote:
> 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?

You can give the value of files to scmd the same way you gave the
value of pattern.

    let scmd = 'findstr /f:' . files . ' /n ' . pattern

Regards,
Gary

-- 
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.

Reply via email to