PEEK&POKE

This file's contents are part of the Help File.

PEEKPOKE is a File Find & String Search/Replace & Attribute Utility for Windows 95 and Windows NT 3.51 & 4.0.

So if you are accustomed to DOS utilities such as FF, FL, TS, REPL, attrib, TOUCH, VTREE, and want to quit using the DOS prompt, this one is for you!

Find File

Peek&Poke lets you find files according to attributes such as name, date, size, file attributes, and contents.

Search&Replace

Peek&Poke can scan through a single file, a set of files as selected with the File Find attributes (explained above), or an entire partition and find all occurrences of a given character sequence (which it can replace with another sequence). It searches (and replaces) text strings and hexadecimal sequences in any kind of (text/binary) file. Once installed, Peek&Poke becomes simply an additional item on the File Manager and Explorer right-click menu.

Attributes

With Peek&Poke, you can also see and change attributes, including modification date&time, of files. Calculating the total size of a directory tree is also included.

Installation

Peek&Poke versions are available for

1. Check that File Manager is not running.

2. Install by running SETUP.

Select "Install". When prompted, choose a directory which is on your path! In NT 3.51, you will get a message about failing Registry editing. Never mind, the FM extension will work anyway.

Now your File Manager should have one new menu item, "Peek&Poke". In Win 95and NT 4.0, clicking the right mouse button on a file or folder reveals two new items: "Find(&Replace)..." and "Attributes...".

SETUP's "Uninstall!" menu item removes all Peek&Poke files, INI and registry information.

****************************************************************************

REPL

Installation

REPL.EXE works in Windows 95 and Windows NT 3.5 and above (Win32). It uses REPL32.DLL, which is also installed when running Setup.

Functionality

Just as Peek&Poke, REPL searches strings and hexadecimal sequences in any (text/binary) file. The string/sequence may be replaced by another string or byte sequence. To find out the syntax of the command enter REPL without parameters or with -?.

Hexadecimal byte values are entered as \xy, where x and y is a number or character a..f or A..F.

Example:

To replace the string ABC<hex00>D with 12<hex0c> in all .CNF files in the current dir:

REPL *.CNF ABC\00D 12\0c

There is a flag to select if the new string will "overwrite" or "replace" the old one:

Old file contents: qweABC\00Dasd

New file contents, overwrite mode: qwe12\0c\00Dasd
New file contents, replace mode: qwe12\0casd

Flags are also available for querying (with/without beep) each replace, ignoring case and destroying backup file.

****************************************************************************

Files included

ReadMe.TXT ;This file
PeekPoke.HLP ;Help file

32\Repl.EXE ;REPL for Win 32 (95 & NT). Uses REPL32.DLL.
32\PeekPokes.DLL ;Shell extension for Win95 (hopefully works with NT 4.0)
32\PeekPo32.DLL ;PP for 32-bit File Manager (NT)
32\Setup.EXE ;Installs for Win 3.1 & Win 95
32\Repl32.DLL ;Edit engine, 32-bit
32\CTL3D32.DLL ;Microsoft visual 3-d enhancement for 32-bit Win
32\MSVCRT.DLL ;Microsoft C runtime, should be part of any Win32 system

Registry Entries added by the 32-bit Setup

[HKEY_CLASSES_ROOT\CLSID\{584859a0-5715-11cf-af9b-0020afcd0abf}]
@="Peek&Poke"
[HKEY_CLASSES_ROOT\CLSID\{584859a0-5715-11cf-af9b-0020afcd0abf}\InProcServer32]
@="peekpokes.dll"
"ThreadingModel"="Apartment"

[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers]
@="PPMenu"
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\CWMenu]
@="{584859a0-5715-11cf-af9b-0020afcd0abf}"

[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers]
@="PPMenu"
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\CWMenu]
@="{584859a0-5715-11cf-af9b-0020afcd0abf}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{584859a0-5715-11cf-af9b-0020afcd0abf}"="Peek&Poke"

[HKEY_CURRENT_USER\SOFTWARE\CWendell\PeekPoke]
Contains preferences for P&P

NT only:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\File Manager\AddOns]
PeekPoke Extension:peekpo32.DLL (REG_SZ)

preferences are, e.g.

WINFILE.INI (not NT)

[AddOns]
PeekPoke Extension=peekpoke.dll

[PeekPoke Information]
ChkDirs=1
IncFlags=39
ChkCase=1
ShowHitArea=0
MenuName=&Peek&&Poke