>Hi everyones.
>
>This is not really a VFP question but it's related. In windows, the search function allows to search for a word inside a file. I used it very often in windows 2000 to find out every forms or program that contains a specific word (ex: a table name or a field name or a command I wanted to replace). Now I have XPPro and this function doesn't work anymore. It seems XPPRo won't look into VFP fiels (it seems to work only with .txt and .doc and similar files).
>
>Am I missing a XPPro setup or parameters here or is it the way it now works ?
Including VFP files need the VFP extensions be added for search. I don't know the author to credit :( this .bat file takes care of it :
* registervfpextensions.bat
@echo off
setlocal
if {%1}=={} goto syntax
set ext=%1
if {%ext:~0,1%} NEQ {.} goto syntax
@echo REGEDIT4>"%TEMP%\RegisterPTFwrk.REG"
@echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\%ext%\PersistentHandler]>>"%TEMP%\RegisterPTFwrk.REG"
@echo @="{5e941d80-bf96-11cd-b579-08002b30bfeb}">>"%TEMP%\RegisterPTFwrk.REG"
:loop
shift
if {%1}=={} goto :done
set ext=%1
if {%ext:~0,1%} NEQ {.} goto syntax
@echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\%ext%\PersistentHandler]>>"%TEMP%\RegisterPTFwrk.REG"
@echo @="{5e941d80-bf96-11cd-b579-08002b30bfeb}">>"%TEMP%\RegisterPTFwrk.REG"
goto loop
:syntax
@echo Syntax: RegisterPTF .ex1 [.ex2] [.ex3] ... [.exn]&goto :EOF
endlocal
goto :EOF
:done
rem regedit /s "%TEMP%\RegisterPTFwrk.REG"
endlocal
OTOH when there is code references in VFP8 and up and filer in all VFP versions I don't even use this:
do form home()+'tools\filer\filer'
does it well.
Cetin