Thanks, Doug. My App uses WinZip to upload zipped files to an ftp site.
I
recently purchased a new computer which is 64 bit. Programs are stored in
the folder Program Files (x86) and not Program Files. Since my code has
a
hard coded reference to the path (which was presumed to be Program Files),
my
program can no longer find WinZip.
I had forgotten that My App has this vulnerability. I wish there was
another
way to find WinZip than what you suggest, since it requires knowing the
file
name of a zip file on the user's computer. I've decided to start storing
the
full path in a local table. If MyApp can't find it, it will ask the user
to
locate WinZip via File Search code. Then Myapp will store the full path
for
future use.
However, I would prefer to be able to find it in code.
Also, what happens when WinZip32 becomes Winzip64??
Oops. Just noticed I was missing the final slash on the folder:
success = FindExecutable("MyFile.zip", "C:\SomeFolder\", sResult)
[quoted text clipped - 12 lines]
WinZip. If possible, I'd like to start with as little information as
possible, (Example WinZip).