home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
vxftpsrc.zip
/
LOCALDIR.VRX
< prev
next >
Wrap
Text File
|
1995-10-05
|
963b
|
41 lines
/*:VRX Main
*/
Main:
/* Test whether the first item is a directory or a file.
If a directory, dirList.1 gets it; otherwise, fileList.1
does. Index i is the index for dirList and index j
is the index for fileList.
*/
i = 0
j = 0
File = VRDir( "*.*", "N", "D", "HS")
do until File = ""
if (File == ".") then
do
File = VRDir( , "N" )
iterate
end
if VRIsDir(File) then
do
i = i + 1
dirList.i = File
end
else
do
j = j + 1
fileList.j = File
end
File = VRDir( , "N" )
end /* end do forever */
dirList.0 = i
fileList.0 = j
call VRMethod "Application", "PutVar", "dirList."
call VRMethod "Application", "PutVar", "fileList."
call VRMethod "Application", "PostQueue", 0, 1, "call SetLocalDir"
exit