Solve the problem that the program cannot run normally in Windows 7/Vista.

Source: Internet
Author: User

In Windows 7/Vista, Microsoft added a new security mechanism: UAC. This mechanism is safe, but it brings a lot of trouble. Many programs cannot run for no reason, or such exceptions occur during running, saving files can often only be saved to user folders.

I recently encountered related problems. After some investigation, I found that there are two folders that can read, write, change, and delete data at will: User File Folder (C:/users/user name /) and Program folder (C:/programdata/): therefore, it is best to put the input and output of the new program into these two directories. The common practice is to store it in the application folder (C:/users/username/appdata/roaming ).

Of course, if you want to use a developed software and do not want to modify it, the above method will not work well. There are two basic methods: Disable UAC and run it as an administrator. Disabling UAC is very dangerous for the system. It is best to run it as an administrator. Right-click the EXE file (win7 can be done directly on the shortcut), open properties-> compatibility, you can see the following option: Run as administrator, select and confirm, in the future, the program will run as an administrator.

This method is quite effective. You can also use the program to complete some methods, as long as you add the string key to the Registry HKEY_LOCAL_MACHINE/software/Microsoft/Windows NT/CurrentVersion/appcompatflags/layers, the name is the full name of the program and the value is runasadmin.

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.