1> item: Error prj0002: Error result 160 (returned from "C:/Windows/system32/cmd.exe)

Source: Internet
Author: User
Tags builtin

Yesterday I compiledProgramThe following error occurs: I ran cmd.exe at runtime, and the result window was just a flash.

No way, I can only find the cmd.exe file under the % SystemRoot %/system32directory directory. The result of double-clicking is still a flash in the window.

I copied it to the desktop and changed the file name to run it again.

Then, I run % SystemRoot %/system32/cmd.exe from the shell that can be run. The following result is displayed:

C:/> C:/Windows/system32/cmd.exe (Press ENTER)
C:/Windows/system32/cmd.exe builtin/users: R
Builtin/Power Users: R
Builtin/administrators: F
Nt authority/system: F
How does it obtain permissions? It seems that another command is executed:

C:/> cacls C:/Windows/system32/cmd.exe

I was puzzled. Then I suddenly remembered that this is not the image file execution option (ifeo) image hijacking?

in the registry, set [HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/Image File Execution options/CMD. EXE]
"Debugger" = "C: // windows // system32 // cacls.exe" is deleted, and the problem is solved.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.