Showing hidden files

This is a discussion on Showing hidden files within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to change whether hidden files and folders are displayed by Windows?...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    17

    Showing hidden files

    Is there a way to change whether hidden files and folders are displayed by Windows?

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,676
    Yes.
    In what context and why?

    gg

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    17
    What I am looking for is a function that will change whether hidden files are shown in Windows Explorer, that is, a way to programmatically toggle the "Show Hidden Files and Folders" setting that is available under "Folder Options..."
    Last edited by hunterdude; 06-09-2005 at 04:48 PM.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Can you make up a good story about why you need to change this setting programmatically? Then we won't feel guilty giving you the answer. Consider it a challenge in creative writing.

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    17
    I want to make a program that will run in the background and use hotkeys to do various things. I wanted one of them to change whether hidden files are displayed. I don't see why this is such a forbidden question.

  6. #6
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    OK, check out SHGetSetSettings.

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    17
    Thank you. I have one further question: How do you call this function in python?

  8. #8
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    That would be a great question for pythonboard.pythonprogramming.com ;-)

  9. #9
    Registered User
    Join Date
    Aug 2004
    Posts
    17
    Asking a question on a nonexistent message board doesn't usually lead to an answer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  2. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 09:52 PM
  3. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  4. Folders and text files
    By tim545666 in forum C++ Programming
    Replies: 11
    Last Post: 02-17-2002, 03:15 PM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 08:35 AM

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