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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Check Where given element is a file or Directory ?

Status
Not open for further replies.

pratham123

Programmer
Dec 16, 2003
12
IN
i got a header by using MS C but how to set that i dont know ?
it make it File View to directory View
 
Do you have any code to show us what you mean?


--
 
If I understant you right, then you need GetFileAttributes("the path of file or directory")

Ion Filipski
1c.bmp
 
How change the File Bit to Directory bit can anybosy have a idea?
 
> How change the File Bit to Directory bit can anybosy have a idea?
Why would you ever want to do that?

The chances that a file will look like the contents of a directory entry are slim to none.

If you want a new directory, use mkdir()

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top