Metacard can copy files!

Klaus Major klaus at major-k.de
Tue Aug 19 17:45:01 EDT 2003


Hi David,

> Is there a Metacard script that will copy an existing non-stack (e.g., 
> JPG)
> file to a specified directory and give the copy a specified new file 
> name?

here's a quick and dirty one ;-)

on makeacopy originalfile, newfile
    put url("binfile:" & originalfile) into url("binfile:" & newfile)
end makeacopy

Caveat: This will read the complete file into memory!

> Many thanks.

Hope that helps...

> David Epstein

Regards

Klaus Major
klaus at major-k.de
www.major-k.de




More information about the metacard mailing list