Jump to content

How to ?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Maiels

Maiels

    Newbie

  • Members
  • Pip
  • 3 posts
Hello everyone! I don`t know if this is the right forum part to ask this.But I would like to know if it is possible to make a executable that would go in the PC`s system and check or uncheck the "Show /Do not show hidden files" in control panel -->folder options .etc...I know it sounds lame but it`s something for my work,and I really need to know if there is a possibility to do that. Thank you for your time

#2
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
This is just what I've been able to find from Googling:
c# - API to toggle "Show hidden files, folders and drives" - Stack Overflow
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#3
Maiels

Maiels

    Newbie

  • Members
  • Pip
  • 3 posts
So I went to the site you shown me .I didn`t understand a thing.From the site you shown me ,what should I do to make what I want?I didn`t really understand the stuff they did there,I mean that they didn`t explain or something .Thank you for your time.

#4
gregwarner

gregwarner

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 853 posts
  • Location:Arkansas
What they're doing is changing a registry key (the key which stores the hidden/shown value for Windows Explorer), and then calling a Windows API method to force Explorer to reread its policies from the registry.

I can't tell you exactly what you should do because I don't know what language you're working in, but if you look up how to set registry keys from your language of choice, as well as how to import dll's and call the functions within, that should teach you everything you need to know to perform this action.

Keep in mind, most virus scanners don't take too kindly to random apps arbitrarily modifying registry keys.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.

– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid


#5
Maiels

Maiels

    Newbie

  • Members
  • Pip
  • 3 posts
I will do what I can to solve my problem,thank you a lot for your time and for explaining me.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users