buffer: rb MAX_PATH
title: ub 'title',0

if ( SelectDirA(title buffer) ) = TRUE
   msg buffer
end if

if SelectDirA title buffer
   msg buffer
endif

ioBuffer: ub 'c:\temp\totalcmd.log',0
rb MAX_PATH - ($-ioBuffer)
if SelectFileA title ioBuffer
   msg ioBuffer
end if
