Thread: Directory attributes in C.

  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,058

  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, 09: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, 03:08 AM