Thank you for your kind willingness to help. I appreciate it.
I've posted the following question
here.
I use WinRar.
In Options > Settings > Integration > User defined archive extensions, I've associated XPI and JA files with the program.
I would like to add the following entries to Windows Explorer's context menu:
1) Add to archive "FileName.xpi"
2) Add to archive "FileName.ja"
I'd like the entries to appear below the default "Add to archive 'FileName.zip'", and also the compression format to be in my zip settings.
*
If you know of another Archiver with which I could achieve that, please let me know.
(Win 7, 32 bit).
Thank you.
***
Later, I've posted the following question
here.
I've created a batch file for zipping selected items in a folder.
(The file is placed in 'Send to').
If I use the following code:
for %%* in (.) do set CurrentFolder=%%~n* "C:\Program Files\WinRar\WinRar" a -afzip "%CurrentFolder%.xpi"
- The file name is that of the current folder (correct).
- All files are archived whether I select one file or multiple files (wrong).
- Selected folders are not archived (wrong).
If I use the following code:
set file=%~f1 "C:\Program Files\WinRar\WinRar" a -afzip "%file:~0,-4%.xpi" %1
- The file name is that of the file on which I right click (correct).
- Only that file is archived even if multiple files are selected (wrong).
How can I know if a single item is selected or more?
What's the condition syntax?
How can I include folders in the archive?
Thank you.
***
Could you please read the threads?
Best regards.