Folder Lock Notepad Script Download

0 views
Skip to first unread message

Diante Scharsch

unread,
Jul 23, 2024, 9:49:34 PM7/23/24
to clubgaupeti

In addition to the two ways you may be very farmilar with in Windows operating systems, there is another worthwhile encryption method. Third-party EaseUS LockMyFile can protect your Notepad files safe and untouched by anyone without your knowledge. Compared with the mere encryption ability of Windows Encryption Tool and WinRAR, the EaseUS file and folder locker software provides more comprehensive password protection solution as follows:

Finally I found a script on Google which I adjusted for my need. This script looks at modules loaded by all running processes. If any process loaded modules from inside the folder we are trying to delete, I close that process. This could be a Windows Service or an IIS website which have loaded an assembly or similar.

folder lock notepad script download


Download 🗸 https://cinurl.com/2zInDH



Is there a way to check the same thing for a folder? I tried to use Remove-Item with -WhatIf flag but it's of no use because the command doesn't return any value - nor did it detect the locked files. If I try to run Remove-Item without the flag to look for exception, then it removes the free files only whereas I want to have a All or None condition.

I have a txt file called "demo.txt" under: "E:\Work\Powershell\scripts\demo". And I am using Notepad.exe to open it. In this case, I will not be able to delete the folder "demo", until I close the notepad.

Hi, @SybrenNooij, welcome to the forum. Can you explain what you're writing to notepad, or show us the code you're using? As it sounds like you're writing a large amount of data, perhaps you should look at a better method of retaining your data such as SQLite. Beyond that, if your computer going to sleep is causing your script to fail, why not just set it to lock after a certain amount of time, but not go into hibernation?

Hi @JLogan3o13, I use it for notes while I work. It's actually pretty rare, that my computer crashes. But when it happens, I lose all my notes. And because I am pretty busy at work, and make alot of notes, they are important to me. I guess there are usually about 300-600 words per day. My thoughts were as following: Making a script that checks if the process notepad.exe is active, if yes, then save as file.txt to a specific location. Then I make a scheduled task, that runs this script every 15 minutes or something like that.

Yeah well, I could also just use Word, and apply autosave, but the issue is that I like the small format of notepad and the plaint text. I know this is also possible in Word, and there are indeed other solutions for my question. My question is, if it is possible to make such a script or something like that, that could help me and/or make it easier.

I've been using VMWare for weel over 7 years and have never had this issue. I typically complete scripts using the host machine. I then create a shared folders configuration to my scripting folder on my host. Using the CMD wing in the guest (everything is Windows), i run the script. If there is an error, I go back tot he host, make a change, save it, then simply retest on the guest.

this issue I'm having, it once I enable "shared folders", I can not make changes to teh file from teh host. I need to etierh save as a different name or diable shared folders, save the script and then re-enable the shared folders so I can test. Very anoying

I have the same issue. Any files/folders I access in a shared folder within a VMware Guest are then locked and cannot be updated/deleted on the host until I shut down the VM, even when nothing in the guest is actually using them.

760c119bf3
Reply all
Reply to author
Forward
0 new messages