home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Global Amiga Experience
/
globalamigaexperience.iso
/
graphic
/
utilities
/
pegger
/
rexx
/
copy_destination.peg
< prev
next >
Wrap
Text File
|
1995-07-10
|
719b
|
24 lines
/* PEGGER ARexx Script to copy the destination file after processing */
/* You need to specify the directory where you want the file to */
/* go including the trailing '/' if needed in the variable copyto */
copyto = "WORK:"
/* And now we can get the source file name and destination file name */
/* For CJPEG the source is an image file, and the destination the JPEG file */
/* For DJPEG the source is the JPEG file, and the destination is the image file */
arg source,dest
last = LASTPOS( "/",dest )
if( last == 0 ) then do
last = LASTPOS( ":",dest )
end
if( last > 0 ) then do
last = last + 1
file = SUBSTR( dest, last )
say 'File: ' || file
ADDRESS COMMAND 'copy ' || dest || ' ' || copyto || file
end