none
How To Hide(Or Lock)File/Folder/Drive In C# RRS feed

  • Question

  • Hi

    how to hide file or folder or drive in c#?(Or Lock)

    GiliSoft File Lock:Best Application for file /folder/drive.

    Do Can in c# similar gilisoft hide file or lock file , So That Don't Show Hidden With Folder Option And Don't Access With CMD?(FileSystemAccessRule Open File or folder in cmd)

    Do gilisoft file lock App with write C#?

    TIA...

    Saturday, January 25, 2014 8:25 PM

Answers

  • Hi Ashkan,

    Please check if this thread helps:

    How to lock or unlock a file using C#?

    From the introduction of the Gilisoft File Lock's official site, I find that this software use AES encryption to protect files. Maybe this article would give you some helpful information:

    C# Password Protected File


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Caillen Thursday, February 6, 2014 9:35 AM
    Monday, January 27, 2014 9:16 AM
  • Hello,

       Check this,

       http://www.codeproject.com/Tips/477175/Show-and-Hide-Drive-Using-Registry-in-Csharp

       Zip Package hide file to hide drive, write main app with login form. If check password ok, then open packaged hide file.

     -----------------------------------------
     if the reply help you mark it as your answer.
     Free Managed .NET Word Component(Create, Modify, Convert & Print)
    • Marked as answer by Caillen Thursday, February 6, 2014 9:35 AM
    Tuesday, January 28, 2014 1:26 AM

All replies

  • Hello,

       To hide file in C#,
       
    File.SetAttributes("fileName",FileAttributes.Hidden)
      You can  FileStream.Lock and FileStream.UnLock for locking the file.

    -----------------------------------------
     if the reply help you mark it as your answer.
     Free Managed .NET Word Component(Create, Modify, Convert & Print)
    Sunday, January 26, 2014 1:24 AM
  • File.SetAttributes Can't Hide File Similar Gilisoft lock.

    With Show Hidden in Folder Option Can Show File.

    But With Hide in Gilisoft lock Don't Show File in Folder Option...

    Sunday, January 26, 2014 8:00 AM
  • Hi Ashkan,

    Please check if this thread helps:

    How to lock or unlock a file using C#?

    From the introduction of the Gilisoft File Lock's official site, I find that this software use AES encryption to protect files. Maybe this article would give you some helpful information:

    C# Password Protected File


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Caillen Thursday, February 6, 2014 9:35 AM
    Monday, January 27, 2014 9:16 AM
  • Hello,

       Check this,

       http://www.codeproject.com/Tips/477175/Show-and-Hide-Drive-Using-Registry-in-Csharp

       Zip Package hide file to hide drive, write main app with login form. If check password ok, then open packaged hide file.

     -----------------------------------------
     if the reply help you mark it as your answer.
     Free Managed .NET Word Component(Create, Modify, Convert & Print)
    • Marked as answer by Caillen Thursday, February 6, 2014 9:35 AM
    Tuesday, January 28, 2014 1:26 AM
  • but i am able to access the drive hidden from the disk management how to hide it totally and then unhide it 

    Thursday, May 25, 2023 8:28 AM