C++ program running from C:\Users\Myname\AppData\Local started by Registry CURRENT_USER
I have a key in my registry that starts a program In my C:\Users\MyName\AppData\Local folder when windows starts (Software\Microsoft\Windows\CurrentVersion\Run) but when the program is started it does not seem to have write permissions to the folder it is in.
开发者_C百科When I double click it to run it, it does have those permissions.
Does anyone know why it does not have permissions when started from the registry and if there is anything I can do about it?
Check that current directory your process is running in is correct. Use Process Explorer to check where your process is running.
精彩评论