copyleft Posted March 4, 2010 Share Posted March 4, 2010 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 Thanks Link to comment Share on other sites More sharing options...
jamesstp20 Posted March 4, 2010 Share Posted March 4, 2010 umm i think you can do it.. I will give u some clue 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now