> You're using the old format of script commands which is more 
difficult
> than the newer syntax. Are you using a recent version of Powerpro?
> Also what version of Windows are you running?

Am I using old syntax format? Did you mean &(x9) or something else?
I'm using PowerPro 4.8 and winxp sp2.

Anyways, using a listfile solved the problem, thanks for the help. 
Apparently there were too many arguments.

I'm having only one question: how to replace "J:\System\_OS Tools
\PowerPro\rarlist.lst" with a variable? It were nicer to declare it 
at the beginning. Shame but I don't know.

The script below also deals with refreshing total commander or 
explorer to make the new archive visible (not working when archiving 
takes a little more time to finish, but it's another story).
It works for directories also, just replace -ep with -ep1.
(maybe placing the .lst tempfile to the temp dir instead of current 
location is also a good idea)

Almost final script:
------------------------------
@files
*ifx (context eq 0)
*assign context 1
*clip text &(_file_)
*else
*clip textappend
*clip textappend &(_file_)
*endif

*Clip ToFile "J:\System\_OS Tools\PowerPro\rarlist.lst"

*ifx (ContextLast eq 1)
do(pprofolder++?"..\..\..\..\File\_archive\WinRAR 3.6\WinRAR.exe",?' 
a -ep 

"&((file.folder(_file_))++"\\"++file.name(_file_))" "@J:\System\_OS 
Tools\PowerPro\rarlist.lst"')

wait.for(500)

*Window Show! under
if(activewindow("=totalcmd"))
keys {to =totalcmd}{f2}
if(activewindow("=explorer"))
keys {to =explorer}{f5}

*File Delete "J:\System\_OS Tools\PowerPro\rarlist.lst"

endif
quit
--------------------------------------

Thanks again for the help,

tpr

Reply via email to