I just set up a Windows 7 x86 32bit SP1 enterprise installation, typed edit (have a costum edit.cmd in my path, in a directory within my user profile) into the CLI, and found out it still has edit.com in C:\windows\system32 (before i was using 64 bit windows) now I do not want to rearrange my path, but rather disable/delete the edit.com, how do I do that?

link|improve this question
2  
If you don't want to change %PATH%, would it be acceptable to change %PATHEXT% to give .COMs the least execution precedence? – jscott Oct 26 '11 at 14:30
oh yes i didnt think of that, thanks – Sebastian Godelet Oct 26 '11 at 14:58
but isn't the pathext only used if two files are in the same directory, just differing by the ending? – Sebastian Godelet Oct 26 '11 at 14:58
I read it as your edit.cmd lived in C:\Windows\system32\ along side edit.com. My apologies. – jscott Oct 26 '11 at 15:01
edited to be clearer, thx – Sebastian Godelet Oct 26 '11 at 15:20
show 2 more comments
feedback

migrated from serverfault.com Oct 26 '11 at 15:19

This question came from our site for system administrators and desktop support professionals.

1 Answer

up vote 0 down vote accepted

Actually just removing .com from pathext does the trick :), thanks @jscott for giving the right hunch, still I'm now curious what has precedence: the %pathext% or the %path%

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.