>There are many occations where a variable or table field is changed. To find all uses of the changed item in order to make the changes, one usually uses the search facility in windows to search for a string in files.
>
>Up until Windows XP this worked just fine but, Microsoft "fixed" the search in XP and it will no longer find text in Foxpro forms, reports, classes, etc. (see KB article Q309173)
>
>In order to make text searches in Foxpro files work, Microsoft states that you need to "Install a program that registers a filter for the file types". Being a Microsoft product surely such a filter file is provided yet, I find no mention of it on the Microsoft site.
>
>Can anyone tell me how to acquire this critical file?
John,
I'm not sure this is the file you want but worked for me (don't remember where I downloaded it from) :
@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
I ran this batch with VFP extensions.
Cetin