5 Replies - 7645 Views - Last Post: 30 June 2010 - 01:44 AM Rate Topic: -----

#1 Aravindasrat  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-December 08

Hide A Folder

Post icon  Posted 01 December 2008 - 09:33 PM

I Need a code for hide and unhide folder for never show
Is This A Good Question/Topic? 0
  • +

Replies To: Hide A Folder

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1868
  • View blog
  • Posts: 20,279
  • Joined: 17-March 01

Re: Hide A Folder

Posted 01 December 2008 - 09:44 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 VB Crash  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 130
  • Joined: 28-November 08

Re: Hide A Folder

Posted 02 December 2008 - 03:18 AM

Mr could you please post some code....

Vace
Was This Post Helpful? 0
  • +
  • -

#4 scotta01  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 05-January 09

Re: Hide A Folder

Posted 05 January 2009 - 04:46 AM

Hi, Sorry to hijack this thread, but I also am unsure of how to unhide a folder.

I have been using:
DirectoryInfo dinf = new DirectoryInfo(dir);
			dinf.Attributes = FileAttributes.Hidden;


This hides it fine I cant figure out how to unhide a folder again.
Was This Post Helpful? 0
  • +
  • -

#5 Kresha7  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 22
  • Joined: 02-November 08

Re: Hide A Folder

Posted 06 January 2009 - 08:29 AM

i love the windows cmd :D u can do it like this

example we have a folder test in c:\ drive :D to hide simply

Shell "attrib +h C:\test"

to make it show again
Shell "attrib -h C:\test"

This post has been edited by Kresha7: 06 January 2009 - 08:31 AM

Was This Post Helpful? 1

#6 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 464
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: Hide A Folder

Posted 30 June 2010 - 01:44 AM

or my link :P
http://www.dreaminco...9-folder-hider/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1