|I have used this, both for phone numbers and for "general notes" to myself. Recommend DO NOT include any passwords or sensitive data.|
::------ begin batchscript PHONES.bat
@echo off & setlocal
:: ---- LOCAL SETTING for your PHONES text file path and name
if not defined string set string=""
:: strip quotes cause don't know if there are any were included in argument
:: add them back to encapsulate search string for FIND
:: if no argument, default to EDIT
if %string% equ "" (
) else (
echo searching for string: %string% in file: %phones%
find /i %string%<%phones%||(
echo string not found.
::---- end script
for sensitive data, use encryption/decryption with password.
PS: this uses commandline arguments to search for. If you want it prompted, replace this line: set string=%*
with: set /p string=Enter search string:
I think that should work.
message edited by nbrane