home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
text
/
golded
/
data
/
tools
/
hispeed
/
arexx
/
fast.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-02-27
|
724b
|
52 lines
/* copy all jobs to T: (usually placed in RAM:) to speed up operation */
options results
shell
address HISPEED.1
SET REQUESTER ON
QUERY JOBS
if RESULT = 0 then
REQUESTFILE
QUERY JOBS
JOBS = RESULT
if JOBS > 0 then
do
/* generate temporary copies in directory T: */
if ~Exists("T:FAST") then do
shell
MAKEDIR 'T:FAST'
address HISPEED.1
end
do N = 0 to JOBS - 1
QUERY JOBNAME N
parse var RESULT PATH NAME REST
JOB.N = NAME
PATH.N = PATH || NAME
TEMP.N = "T:FAST/" || NAME
shell
COPY PATH.N TEMP.N
address HISPEED.1
end
/* redirect list entries */
CLR
do N = 0 to JOBS-1
SET FILE TEMP.N
end
end