How To make Folder Lock Software ?
Trusted processes, programs permitted to access the protected data, but no any other process can see folder or file.
refrence Software like
fspro.net/hide-folders
Loading
How To make Folder Lock Software ?
Trusted processes, programs permitted to access the protected data, but no any other process can see folder or file.
refrence Software like
fspro.net/hide-folders
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajesh GamiRank #30 · 41.5K reputationPosted Nov 15, 2022, 8:57 AM EST
https://bitsbyta.blogspot.com/2011/01/lock-and-unlock-folder-cnet.html
The following code shows you how to lock and unlock a folder. User can browse the specific folder to lock/Unlock it.
using System.IO; using System.Security.AccessControl; private void btnBrowse_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { textBox1.Text = folderBrowserDialog1.SelectedPath; } } private void btnLock_Click(object sender, EventArgs e) { try { string folderPath = textBox1.Text; string adminUserName = Environment.UserName;// getting your adminUserName DirectorySecurity ds = Directory.GetAccessControl(folderPath); FileSystemAccessRule fsa = new FileSystemAccessRule(adminUserName, FileSystemRights.FullControl, AccessControlType.Deny) ds.AddAccessRule(fsa); Directory.SetAccessControl(folderPath, ds); MessageBox.Show("Locked"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } private void btnUnLock_Click(object sender, EventArgs e) { try { string folderPath = textBox1.Text; string adminUserName = Environment.UserName;// getting your adminUserName DirectorySecurity ds = Directory.GetAccessControl(folderPath); FileSystemAccessRule fsa = new FileSystemAccessRule(adminUserName, FileSystemRights.FullControl, AccessControlType.Deny) ds.RemoveAccessRule(fsa); Directory.SetAccessControl(folderPath, ds); MessageBox.Show("UnLocked"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }Naresh BeniwalRank #365 · 6.8K reputationPosted Nov 13, 2022, 7:55 AM EST
https://www.instructables.com/How-To-Lock-Folder-without-any-software/