Greetings.
Using OI 7.2.1 on WinXP
It appears that one can not use the NR&D options together.
D will get you subdirectories and the default or N will get you files, but I have not found out how to get both the subdirectories and the files in a particular path. I notice that the examples in the doc use just one option at a time. I had used NARD in the past (on W2k - don't remember what version of OI) with success but I gather that is not supported now? Or, might I have some other problem in my system/configuration? I would like to get both files and subdirectries
Thanks for the guidance
Paxton
I recall from my experiments with this that the API / DOS path calls are *very* temperamental - even under asm, VB6 and C++.
My advice would be to call the function with a single parameter each time, as many different ways as required.
Paxton,
The 7.2.1 version basically makes the options behave the way the DOS DIR command works, with one major exception. If you ask for the "D" options you will ONLY get directories back, otherwise you will ONLY get files back.
The DOS DIR command shows you directories in the list - dirList() doesn't have that capability, hence the need to differentiate. This was the big problem with the old method - there was no accurate way to sort the directories from the files if you had files with a 0-byte size.
Under the 7.2.1 version you will have to make two calls to to get your information.
World leaders in all things RevSoft