Welcome, Guest. Please login or register.

Author Topic: Arexx Help  (Read 1505 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AmiNTTTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 176
    • Show all replies
    • http://www.leroux.ca/
Arexx Help
« on: July 21, 2003, 03:49:37 PM »
So here's the deal; I would like an arexx script that I can use to copy files created after date "x" on partition "a" into a lha file on partition "b".

I know this shouldn't be too difficult, but its been too long for me since I last messed around in Arexx.  

Help would be most appreciated!


Offline AmiNTTTopic starter

  • Full Member
  • ***
  • Join Date: Feb 2002
  • Posts: 176
    • Show all replies
    • http://www.leroux.ca/
Re: Arexx Help
« Reply #1 on: July 21, 2003, 08:21:07 PM »
Okay, so I tried this:
.KEY filedate/A,sourcepath/A,destpack/A
.BRA {
.KET }

cd {sourcepath}
echo "Scanning directories for archived files at {sourcepath}"
c:list files since {filedate} all lformat %P%N > ram:t/archlist
lha -a -e -x a {destpack} @ram:t/archlist

Saved it in c:, set the script bit, and ran it on dh0:  worked fine. (yay!)   I then ran it on DH2: where after a minute, it generated a " c:list failed returncode 20".  I checked the archlist file and the last line indicated "bad template".

Dh2 is my main work partition and probably has 5k files on it.

This looks like a good solution - when I mentioned Arexx, my brain was still in "its Monday" mode.  I mean to say Ados/arexx.

Any idea what the issue is?