What Windwos freeware adds powerful "phone Susan" & "vipw" commands?
On 5 Jul 2018 04:15:43 GMT, Mark Blain wrote:
For (2), your "command.bat" could look something like:
@echo off
find /i "%1" C:\path_to_my\phone.txt
pause
Thank you!
Your suggestion worked perfectly on the first pass!
USE MODEL:
a. Start Run phone susan {enter}
b. Instantly pops up a window containing the given "grep" results.
c. Pressing return in the resulting window makes those results go away.
Here's how to set that up in three easy steps:
1. Create a data file anywhere of any name (usually ending in ".txt")
containing text rolodex information, for example:
C:\path\data.txt
2. Create a batch file anywhere of any name (usually ending in ".bat")
containing the given grep command:
c:\path\grep.bat
Where that batch file contains the suggested three lines:
@echo off
find /i "%1" C:\path\data.txt
pause
3. Create an "AppPaths" string key of any name (always ending in ".exe")
which points to that batch file, for example:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\phone.exe
Default="c:\path\grep.bat"
Obviously you can use any file & key names you like.
The doublequotes are only needed if you have long names or spaces in the
path to the batch file.
Note that for example purposes, I gave each of the three items different
names, but there is no reason you can't use similar names, such as:
1. c:\path\phone.txt
2. c:\path\phone.bat
3. App Paths = phone.exe
Note: The key named "phone.exe" simply defines the name of the command that
you will run. There is no need for a file named "phone.exe"; the ".exe"
extension is simply a mandatory requirement of the "App Paths" key.
Thank you for adding to the tribal knowledge of this newsgroup!
|