home *** CD-ROM | disk | FTP | other *** search
- /* parent.txed */
- arg duwindow
-
- OPTIONS results
-
- if duwindow = "FROM" then devstring = getenv("dufromdir")
- else devstring = getenv("dutodir")
-
- colonloc = index(devstring ,":")
-
- if colonloc ~= 0 then parse var devstring dev ":" devstring
-
- if devstring = "" then devstring = ":"
- else do
- devstring = reverse(devstring)
- lastslash = index(devstring,"/")
- if lastslash = 1 then parse var devstring a "/" devstring
- parse var devstring prev "/" devstring
- devstring = reverse(devstring)
- if devstring ~= "" then devstring = dev":"||devstring||"/"
- else devstring = dev":"
- end
-
- if duwindow = "FROM" then do
- address command "list >VD0:DUFROMTEMPLISTING sort nodates " devstring
- LOAD "VD0:DUFROMTEMPLISTING"
- 'filelist/cleanlast'
- x = setenv("dufromdir", devstring)
- end
- else do
- address command "list >VD0:DUTOTEMPLISTING sort nodates " devstring
- LOAD "VD0:DUTOTEMPLISTING"
- 'filelist/cleanlast'
- x = setenv("dutodir", devstring)
- end
-
-
- MSG devstring
-
- exit
-