I am trying to pass a file to a script via an Explorer context menu
and I can't figure this out. 

I am trying to first backup a file to *.*.bak and then resize it using
a utility called Nconvert (from Xnview). My script looks like this:

file.copy("|" ""|"++.bak")
wait.for(1000)
do("D:\Graphics\XnView\nconvert.exe -quiet -resize 75% 75% *.jpg")
quit

The command line for Nconvert is proper and if I just use that third
line as my command in the context menu, Nconvert does it's thing
properly resizing the file. 

For the life of me, I can't figure out how to properly pass the file
from the context menu. My script name is Nconvert.powerpro and I have
tried using the following in the command of the context menu:
.nconvert()

I have read the help file and I can't figure out what it means when it
says: "The variable Context is set to 0 for the first file; you should
set it to 1 when processing this file."

Can anybody help me out please?




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