Directory attributes in C.

This is a discussion on Directory attributes in C. within the Windows Programming forums, part of the Platform Specific Boards category; Looking around on the web the only thing I could come up with was use Winexec and a system command. ...

  1. #1
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065

    Directory attributes in C.

    Looking around on the web the only thing I could come up with was use Winexec and a system command. . .

    What is the Windows version of chmod()?

    I'd like to set the attribute of a directory to HIDDEN. I can do this if I use CreateDirectoryEx(), however, I was wanting a way to modify the directory after I created it.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059

  3. #3
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    Ah crap!!!

    I've looked at that 100 times. . . but kept missing the "or directory" in:
    The SetFileAttributes function sets the attributes for a file or directory.

    That's what I get for not reading the whole line. . .

    Sorry about that folks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 10:38 AM
  2. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  3. MURK - a small preview
    By Mario F. in forum Game Programming
    Replies: 27
    Last Post: 12-18-2006, 08:22 AM
  4. Help Required!!!!!
    By bobthebullet990 in forum C Programming
    Replies: 14
    Last Post: 11-27-2005, 03:56 PM
  5. Replies: 6
    Last Post: 07-30-2003, 04:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21