>> 
>> For (DirValue = arg(1); index(DirValue, ?"\") > 0; )
>>   DirValue = remove(DirValue,index(DirValue, ?"\"))
>> Endfor


>Can you use revindex to replace above for?

Yet another command I missed!

Updated script looks like this:
;---------begin script---------------
local DirValue

DirValue = select(arg(1), revindex(arg(1), ?"\")+1, length(arg(1)))

;below is one line
do(?"C:\Program Files\WinRAR\WinRAR.exe",?' a -r "C:\work\'++DirValue++?'"
"'++arg(1)++?'\*.*"')
;---------end script---------------


Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to