Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Searching in Files
Message
From
18/09/2002 02:26:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/09/2002 18:44:55
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00701552
Message ID:
00701629
Views:
19
>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) :
*regextension.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
I ran this batch with VFP extensions.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform