====== FindInFiles ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Finds text in specific file or directory files ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strText** * [[scripting:api:data-type:BSTR|BSTR]] **strPath** * [[:scripting:api:find|eFind]] **dwFlags** * [[:scripting:api:find-ex|eFindEx]] **dwFlagsEx** * [[scripting:api:data-type:BSTR|BSTR]] **strInclude** * [[scripting:api:data-type:BSTR|BSTR]] **strExclude** ==== Return Value ==== * [[:scripting:api:file-ranges:start|IFileRanges]] **ppFileRanges** ===== Syntax ===== ==== JavaScript ==== var ppFileRanges = Application.FindInFiles(strText, strPath, dwFlags, dwFlagsEx, strInclude, strExclude); ==== Visual Basic Script ==== ppFileRanges = Application.FindInFiles strText, strPath, dwFlags, dwFlagsEx, strInclude, strExclude ==== C++ ==== CComPtr pFileRanges; HRESULT hr = Application.FindInFiles(strText, strPath, dwFlags, dwFlagsEx, strInclude, strExclude, &pFileRanges); ===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~