exe c++ boot at windows start but not working, run manually it works
Hello,
I created a small application in C + + with Visual C++ 2010 Express. No error message.
- Started manually: everything is OK (it wrote a text in a txt file)
- To run this application at start of windows, I created a key regedit (HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run), the program starts without problems (I see it in task manager) but it does not work, the text file is not written !!!!!
Where is the problem?
A parameter in the project properties in vc++?
Thank!
Re: exe c++ boot at windows start but not working, run manually it works
Originally Posted by rv2010
- To run this application at start of windows, I created a key regedit (HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run), the program starts without problems
Try to move it from HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER. It looks like your App is started too early: before your user profile will be loaded.
Re: exe c++ boot at windows start but not working, run manually it works
Where do you expect this log2.txt to be made ?
Without a path, it'll be in the current directory.
Which for boot time is the windows directory as far as I know.
UAC prevents write access in the windows directory.
Try putting a full path to where you want the file to be made.
Bookmarks