home *** CD-ROM | disk | FTP | other *** search
- /* rexx program to make an object on the desktop */
-
-
- /* add system functions */
- result=RxFuncQuery(SysDriveMap)
- if result=1 then
- do
- call RxFuncAdd 'SysDriveMap','RexxUtil','SysDriveMap'
- end
-
- result=RxFuncQuery(SysFileSearch)
- if result=1 then
- do
- call RxFuncAdd 'SysFileSearch','RexxUtil','SysFileSearch'
- end
- /* get list of drives */
- map=SysDriveMap('C:','USED')
-
- say "list is " map
- /* check to see which one contains CD */
- count=Words(map)
- i = 1
- Do while i <= count
- drive = Word(map,i)
- say "drive is " drive
- result = SysFileSearch('Experience C++', drive'\Intro1.TXT', 'foo.')
- if result=0 then
- do
- say "on drive " drive
- return drive
- end
- i = i+1
- end
- return "error"
-
-