Problem with File Associations

  • Thread starter Francisco del Valle
  • Start date
F

Francisco del Valle

I've created a program similar to Winzip. It takes command line arguments
like this:

zip file1 file2 ... fileN

I've added this Keys to Registry:

HKEY_CLASSES_ROOT\*\Shell\MYZIP
HKEY_CLASSES_ROOT\*\Shell\MYZIP\Command = "[PROGRAM_PATH]\Myzip.exe" %1


Here is my problem: when I select (for example) three files and try to
"MyZip" them, Three Myzips.exe is executed instead of one with three
arguments.


Thanks for your help
 
M

Mark V

In said:
I've created a program similar to Winzip. It takes command line
arguments like this:

zip file1 file2 ... fileN

I've added this Keys to Registry:

HKEY_CLASSES_ROOT\*\Shell\MYZIP
HKEY_CLASSES_ROOT\*\Shell\MYZIP\Command =
"[PROGRAM_PATH]\Myzip.exe" %1


Here is my problem: when I select (for example) three files and
try to "MyZip" them, Three Myzips.exe is executed instead of one
with three arguments.

I of course have no knowledge of your program...
Possibly use the replaceable parameter "%*" to pass all arguments
instead of just the first ("%1") to your application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top