Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any findfirst & ffblk & enum experts out there?

Status
Not open for further replies.

biot023

Programmer
Nov 8, 2001
403
GB
Hallo.
I have some code that reads:
ffblk ffblk;
if(!findfirst("formatted",&ffblk,FA_DIREC)){
// create & ensure subfolder "formatted" exists
}

The line with findfirst in it is to check that the directory doesn't exist before I try to create it, so that I can perform another action if the folder then can't be created for some reason.
My problem is, the findfirst call, as I understand it, that I have written should only be checking for directories called 'formatted'. I know there is no such folder there, but am not getting to create code in the debugger, and on the one ocasion (I don't know why) when I did, findfirst had read a file.
I am very confused.

Douglas JL

If it don't make you laugh, it ain't true.
 
I'll have to look over my notes since it's been a while since I used these. Just out of curiosity, are you using Builder? If so have you looked at FindFirst. James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Yes, I'm using Builder 6 - I'll have a quick reccy now, thanks. If it don't make you laugh, it ain't true.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top