Help - Search - Members - Calendar
Full Version: Replacing Notepad.exe
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows Vista

   
Google Internet Forums Unattended CD/DVD Guide
Swimming_Bird
As i do in my windows boxes i'm tyring to replace notepad.exe with a better editor. however it'll never let me copy the file over, even when running in admin mode (or whatever). I get the UAC popup and after accepting it still says i dont have access to do the replace.

Anyone know how to get it to overwrite?
anonymous_user
heres what i do:

right-click on notepad.exe and select Properties.

go to the Security tab > Advanced > Owner and change the Owner to Administrators and click OK.

go back to the Security tab and click on Edit..., under users/groups select Administrators and check teh box for Full control.

click OK twice and youre now able to delete/replace notepad.exe
joaodanet
try

1 - in prop .exe OWNER & SECURITY option for YOU (get it) ( Access TOTAL )
2 - Disable UAC ( run -> Services.msc )

See about UAC ( User Account Control )
http://technet.microsoft.com/en-us/windows...a/aa905108.aspx

excuse me for my english
Swimming_Bird
QUOTE (anoymous_person @ Feb 10 2007, 06:21 PM) *
heres what i do:

right-click on notepad.exe and select Properties.

go to the Security tab > Advanced > Owner and change the Owner to Administrators and click OK.

go back to the Security tab and click on Edit..., under users/groups select Administrators and check teh box for Full control.

click OK twice and youre now able to delete/replace notepad.exe

hrm, this doesnt seem to work for me
ripken204
just login as admin and do it
Stoic Joker
Instead of throwing the baby out with the bath water and crippling security configurations just to rid ones self of a single 100kb file ... Why not just change the file associations for the file types you want opened with the other editor?

It's hardly hurting anything just sitting on the drive, Christ it's only a text editor not a plague rat.
Camarade_Tux
QUOTE (Stoic Joker @ Feb 24 2007, 05:03 PM) *
Instead of throwing the baby out with the bath water and crippling security configurations just to rid ones self of a single 100kb file ... Why not just change the file associations for the file types you want opened with the other editor?

It's hardly hurting anything just sitting on the drive, Christ it's only a text editor not a plague rat.

Answer:
Because there are many many associations to change. ph34r.gif

There's a "spoiler" tag, let's use it. tongue.gif
Nepali
okey... here you go
disable UAC first.. (control panel--->user account-->Turn user account control on or off-->remove tick-->ok)
go to system32 [run(winkey +r)-->system32]
locate notepad
rt click on it-->properties-->security tab-->choose administator-->advance-->choose owner tab--> click edit-->click administrator-->ok-->OK-->on security tab again click administrator--->click edit-->click administrator again-->give full permission by putting tick mark on FULL-->ok-->ok

Delete notepad or rename to else
paste ur fav editor as notepad.exe

Voila...
cheers
MAVERICKS CHOICE
What about recabbing the notepad replacement in your original source prior to install? hek thats what I do currently in xp.
Stoic Joker
QUOTE (Camarade_Tux @ Feb 24 2007, 11:14 AM) *
QUOTE (Stoic Joker @ Feb 24 2007, 05:03 PM) *
Instead of throwing the baby out with the bath water and crippling security configurations just to rid ones self of a single 100kb file ... Why not just change the file associations for the file types you want opened with the other editor?

It's hardly hurting anything just sitting on the drive, Christ it's only a text editor not a plague rat.

Answer:
Because there are many many associations to change. ph34r.gif

There's a "spoiler" tag, let's use it. tongue.gif

How cleaver I have to highlight text to read it ... Not!

Many Many?!? try 2

.txt & Internet options HTML edit with...

Sure there are others .reg .inf .ini etc. Which have no syntax highlighting support (and therefore don't need a fancy editor...), and if you really need it then you're probably to stupid to be editing the file in the first place.

If you really want to have everything "covered" then add your editor of choice to the send to menu and you're done ... or pick an editor (Like EmEdit) that is written by someone with enough sense to grab the file associations during the install and it's problem over.

Poking holes in a security scheme that's designed to protect the OS just to wedge in some widget is foolish and a recipe for disaster.
Camarade_Tux
ini, reg, inf have no syntax highlighting? No syntax folding either probably.
Have you ever changed more than one association in windows?
I have quite a good experience in this field and can tell you replacing notepad.exe is by far the easiest method.
Nepali
QUOTE
What about recabbing the notepad replacement in your original source prior to install? hek thats what I do currently in xp.

Well well well..
it will require to build a DVD from the scratch and will lead a new topic again. smile.gif
DuckFOO
I understand that a command prompt is available from the Vista installation CD. Couldn't you just boot from the CD and alter things to your liking?
MAVERICKS CHOICE
QUOTE (Nepali @ Feb 25 2007, 01:13 PM) *
QUOTE
What about recabbing the notepad replacement in your original source prior to install? hek thats what I do currently in xp.

Well well well..
it will require to build a DVD from the scratch and will lead a new topic again. smile.gif


No worries man, if your up to it? Please enlighten us. thumbup.gif
gunsmokingman
QUOTE (Stoic Joker @ Feb 24 2007, 06:03 PM) *
Instead of throwing the baby out with the bath water and crippling security configurations just to rid ones self of a single 100kb file ... Why not just change the file associations for the file types you want opened with the other editor?

It's hardly hurting anything just sitting on the drive, Christ it's only a text editor not a plague rat.

I agrree and on this, plus there are 2 notepad.exe in Vista
1\ Drive\Windows\notepad.exe
2:\ Drive\Windows\System32\notepad.exe
QUOTE
ini, reg, inf have no syntax highlighting? No syntax folding either probably.
Have you ever changed more than one association in windows?
I have quite a good experience in this field and can tell you replacing notepad.exe is by far the easiest method.

Wrong it easier to right click the text file and select the app you want to open it with and select alway use
then what has been posted to change or remove notepad.
Swimming_Bird
QUOTE (Nepali @ Feb 24 2007, 11:24 AM) *
okey... here you go
disable UAC first.. (control panel--->user account-->Turn user account control on or off-->remove tick-->ok)
go to system32 [run(winkey +r)-->system32]
locate notepad
rt click on it-->properties-->security tab-->choose administator-->advance-->choose owner tab--> click edit-->click administrator-->ok-->OK-->on security tab again click administrator--->click edit-->click administrator again-->give full permission by putting tick mark on FULL-->ok-->ok

Delete notepad or rename to else
paste ur fav editor as notepad.exe

Voila...
cheers

the only issue with this is i'm not so certain that i want to disable UAC, and i've heard that disabling it and then re-enabling it causes issues.
Nepali
it will never.. not to be so worried
here u can use script as well to gain the file ownership
Shift Right on the file you want to gain ownership and click Gain ownership
then do whatever u like with the file
QUOTE
Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Gain Ownership"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /A /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /A /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Gain Ownership"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /A /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /A /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
war59312
Sadly that script does not working here. No such option when I right click a folder or file when holding down the shift key or not. sad.gif
Nepali
this is for windows Vista
not for windows XP

save that script on notepad and save it as reg file
merge it
now only u can see the option press shift + rt click on the file
S.SubZero
http://www.pchell.com/virus/qaz.shtml

This exploit from long ago tampered with notepad, so maybe given that practically every user will eventually run it, they decided to lock it down to prevent tampering.
XPerties
QUOTE (Nepali @ Mar 14 2007, 06:41 AM) *
this is for windows Vista
not for windows XP

save that script on notepad and save it as reg file
merge it
now only u can see the option press shift + rt click on the file



Yes this works but shift + right clicking on notepad does not give you that gain option. It does on other files but not notepad.
gunsmokingman
Try this vbs script
Thread For Take ownership
pppx00
I just tried, but doesn't work with .EXE on Windows and System32 folders, with other files works perfectly, maybe is due by some update.
Nepali
Run as administrator is causing u the problem
Merge this registry script and u will be able to take the EXE file ownership
QUOTE
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\exefile\shell\runas]


merge it
now follow the previous steps
Swimming_Bird
one thing linux still has better is with root you can f*** up your OS as much as you want if you know what you're doing.
Nepali
yeah,, even in windows, if are logged with the administrative rights u will be able to do the same as u do in linux from root
smile.gif

but i hope this is better regarding the security
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.