Jump to content
Sign in to follow this  

Notepad Replacement

Recommended Posts


I've been away from this forum and wondered if anyone could do a quick and dirty script from this batch file for windows 7:

takeown /f c:\windows\syswow64\notepad.exe
cacls c:\windows\syswow64\notepad.exe /G Administrators:F

takeown /f c:\windows\system32\notepad.exe
cacls c:\windows\system32\notepad.exe /G Administrators:F

takeown /f c:\windows\notepad.exe
cacls c:\windows\notepad.exe /G Administrators:F

copy c:\windows\syswow64\notepad.exe c:\windows\syswow64\notepad.exe.backup
copy c:\windows\system32\notepad.exe c:\windows\system32\notepad.exe.backup
copy c:\windows\notepad.exe c:\windows\notepad.exe.backup

copy notepad2.exe c:\windows\syswow64\notepad.exe
copy notepad2.exe c:\windows\system32\notepad.exe
copy notepad2.exe c:\windows\notepad.exe


Share this post

Link to post
Share on other sites

umm i think you can do it.. I will give u some clue :mellow:

Takeown = Delete or Overwrite files..

The cacls command is used to edit and display file permissions on NTFS partitions

Copy is used for Copy :(

With the command Run (on Autoit) You can send command on the cmd

Good Luck

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this