Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi am using encryption and decryption method... now my question is after decrypt the decrypted folder should be hidden(not visible) use in C#... please guide me anybody
Posted
Updated 15-Nov-11 0:11am
v2
Comments
DaveAuld 15-Nov-11 6:12am    
Clarification required.....I don't understand your ramblings or the connection between encryption/decryption and visibility.
Sergey Alexandrovich Kryukov 15-Nov-11 15:44pm    
What is "Directory folder"?
--SA

1 solution

Just set it to be hidden.

C#
DirectoryInfo di = new DirectoryInfo(@"C:\TestFolder");
di.Attributes = FileAttributes.Hidden;
 
Share this answer
 
Comments
bprakash2 15-Nov-11 6:27am    
thanks.. but its visible true.. i need visible false... anyway thanks...
#realJSOP 15-Nov-11 7:10am    
That's how you make a directory hidden. It's a file attribute that you apply to the folder. BTW, hiding/showing a folder has absolutely NOTHING to do with encryption.
bprakash2 15-Nov-11 7:20am    
thanks...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900