I have a test.bat and a copy of cmd.exe (rename cmdnew.exe), both in a same folder.
Question: How can i run test.bat with a specific "cmdnew.exe" (not with cmd.exe)? (how can i register the new path of shell cmdnew.exe)
To be considered:
I need to associate batch (.bat) file with the new cmdnew.exe
The cause of this question is because cmd.exe, regedit.exe and another GUI windows tools, "missing" from my Windows OS (not reason, and not related to the question). However, I must clarify that when I use the term "missing" it means that Windows does not find them, but applications are correctly listed in their directory. And if I try to manually run cmd.exe (from windows/system32) get the same message that: the operating system can not find cmd.exe
I need tu run my .bat with administrative privileges to fix the problems with my OS
I copied the new "cmdnew.exe" console to the Windows/system32 route, but when I opened is locked the command prompt (The command prompt has been disabled by your administrator. Press any key to continue...). And I can not change this restriction because applications "gpedit.msc" and "regedit.exe" are also "missing". In addition, this message should not go out because it is a local computer and the account has administrator privileges
Update: Jul 09
- It is in personal computer and an administrative account. It is not connected to any network. Win 7 SP1 x64 OS. It is possible that this damage has been caused by malware; i'm not sure and neither is related to the question. Currently no presence of malware on the PC.