Hack Forums
[Shell] [BAT] How to check for locked files by Hackoo - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] [BAT] How to check for locked files by Hackoo (/showthread.php?tid=5690167)



[BAT] How to check for locked files by Hackoo - Hackoo - Aug 9, 2017

Hi ✌
This source is inspired from How to check in command-line if a given file is locked (used by any process) ?
Check_Locked_Files.bat
Check_Locked_Files.bat (Click to View)


* - Hackoo - Aug 11, 2017

I made an update for this script :

Description of this script : Check_Locked_Files.bat :
This script can scan and check for locked files on a set of folders that can be modified into the script; for example, i have chosen those set of folders to be scanned :

Code
Set Folders=^
    ^ "%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup"^
    ^ "%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"^
    ^ "%ProgramFiles%\Internet Explorer"^
    ^ "%ProgramFiles%\Skype"^
    ^ "%ProgramFiles%\TeamViewer"^
    ^ "%WinDir%\system32\drivers"^
    ^ "%Temp%"

The output result is in HTML format for more readability.
If the file is locked we show it in red color otherwise we show it in green color.
I added a funny stuff : Play radio while scanning in order to let the user be patient until the scan ended


* - Phlox - Aug 12, 2017

Thank you for the fantastic batch script.


* - Hackoo - Aug 12, 2017

(Aug 12, 2017 08:08 AM)Phlox Wrote:  Thank you for the fantastic batch script.
Thank you mate for your testing ✌ 👍
You are always the first one that you test my scripts and give me a feedback, really i appreciate it ! 🤗