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.