A Word or Phrase in the file search Not Working on XP
Keywords: A Word or Phrase in the file search Not Working on XP
Question:
This isn't strictly a WinBatch problem but I want to ask here before I go to Microsoft. I loaded XP on my workstation last week and am still getting used to it. Anyway, I was thinking about replying to a post yesterday but wanted to find the WB script that had the code I wanted to reference. In Explorer I right clicked on the directory with all my scripts and entered "*.wbt" for the files and "ksend" for the string to look for. It didn't find anything. I tried every variation I could think of but nothing was ever found. I eventually used "debug" as the string because it is in every one of my sctipts. Search still didn't find anything.Today I rebooted my workstation and tried again but it made no difference. I also went to one of my coworkers and had him map a drive to my "c$' share and run the search. It worked the same for him - it didn't find anything. From his Win2K workstation it worked fine - just like it always did for me on my Win2K box.
Has anyone run into this problem or can you duplicate it? Know how to fix it?
Answer:
Hmmm, strange. I was able to recreate that too. Apparently the XP search system allows applications to define filters for searching the contents of files. A file without a filter doesn't get searched.To resolve this problem for .wbt filetypes,
The following registry setting should exist:
HKEY_CLASSES_ROOT\.wbt\PersistentHandler(Default) = {5e941d80-bf96-11cd-b579-08002b30bfeb}For more information see following Microsoft tech article: Microsoft Article ID Q309173We are looking into adding the support directly from WinBatch in future versions...
Article ID: W15159