home *** CD-ROM | disk | FTP | other *** search
- /* copyfiles */
- OPTIONS results
- OPTIONS failat 5
- frompath = getenv("dufromdir")
- frompath = 'filelist/stripstar'(frompath)
-
- topath = getenv("dutodir")
- topath = 'filelist/stripstar'(topath)
-
- rowno = 'filelist/findbottom'()
-
- Jump 2 0
-
- do i = 1 to rowno
-
- STATUS L
- if result = "RESULT" then do
- line = "I got the line "||result
- x = postmsg(200,200,line,)
- leave i
- end
- parse var result name id .
- name = strip(name)
- id = strip(id)
-
- if id = "Dir" then do
- Down
- iterate
- end
- else do
- copystring = "copy "frompath||name" to "topath " quiet"
- address command copystring
- end
- Down
-
-
- end
-
- TOPort = getenv("DUTOPort")
- TOPort = '"'TOPort'"'
-
- refreshstring = "filelist/getlist "||topath||' to'
- refreshstring = '"'refreshstring'"'
- interpret address TOPort refreshstring
-
- MSG frompath
- exit
-
-