Hi,
Does anyone know how to check if a folder is hidden when performing using 'perform checklist for files'.
I have code along the lines of this>, which is working fine, but when I try and 'set dir' to a hidden/system folder then it crashes so I need to remove these from my array so the user cannot select them.
empty checklist
num_of_dir_items(0) = 0
perform checklist for files
find first
for check_lp = 1 to checklist quantity()
if checklist string$(check_lp) <> "." and checklist string$(check_lp) <> ".."
inc num_of_dir_items(0), 1
directory_index(num_of_dir_items(0)).item_name$ = checklist string$(check_lp)
directory_index(num_of_dir_items(0)).item_type = checklist value a(check_lp)
directory_index(num_of_dir_items(0)).item_size = file size(directory_index(num_of_dir_items(0)).item_name$)
directory_index(num_of_dir_items(0)).item_date$ = get file date$()
find next
endif
next check_lp