Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / set dir hidden folder problem using perform checklist for files

Author
Message
Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 4th Jan 2012 00:17
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.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 4th Jan 2012 02:09
there is no command in DBPro (or at least for now) which tells you if a folder/file is hidden or not.
check your code very well because you shouldn't have a problem setting your program to a hidden directory.

Quote: "but when I try and 'set dir' to a hidden/system folder then it crashes"

some hidden directories are for operating system use only. windows will not allow you to read/write file onto these directories.
Ben_UK78
15
Years of Service
User Offline
Joined: 10th Jul 2010
Location:
Posted: 4th Jan 2012 05:21
It must be due to system folders. Testing it with a hidden folder I created isn't a problem (doh)

I run a check in the code for 'if path exist(path$) = 0 then end' etc

and it gets through that line fine, so the issue is with 'set dir', not the path.

Do you know any way around this, other than adding for each operating system:

if checklist string$(loop) <> "System Volume Information"
add to array etc
endif

Login to post a reply

Server time is: 2026-07-10 06:30:24
Your offset time is: 2026-07-10 06:30:24