>>I can't figure out how to work with native operating system files under
CW 1.501. What I want to do is get a list of directories and place them
into a queue and display them to a user (kind of like a file browse box,
only with directories). Also, when a CW app crashes it sometimes leaves
the files in a locked state, I need to delete any *.LOG files or *.TR$
files and recover from a crash. Unfortunately, I can't find a function to
access a file by wildcard, or process a list of matching files. The DOS
functions are FindFirst (or FindFile) and FindNext. Is there any CW
equivalent? Or a Windows API call that I can use? Also, I need to be able
to create a directory.
I might be able to use the run command, but doesn't this open a DOS
window to process the command? I REALLY do not want to do this if it is
possible to avoid it.<<
To get a list of directories, check out the DIRECTORY command in CW LRM
or online help.
To create directories, use...
fcMkDir(*CSTRING),SHORT,RAW,NAME('_mkdir')
Returns 0 if successful. Declare parameter as CSTRING(81). It contains
the full path to the directory that you want to create.
HTH
==================================
David W. - dwil...@ilake.nsan.com
Global Electronic Marketing, Inc.
http://www.geminc.com