Installing Application

Hi all,
I have written a C++ application i want to make it run on startup (Application modifies the content of a text file).When i place its .exe file's shortcut in common startup folder so that it should run on every user startup this works fine for both Admin and simple user. But on simple user account it gives an error of permission denied as output file goes in C:\\Program Files\\xyz.txt as simple user donot have access of this folder.

My question is,where should i place my output file so that it is accessible by any user and my program will be able to run fine?
In all Versions of windows (After XP , ofcourse)
This isn't a C++ question. You should move it to the Lounge.

The appropriate placed for your output file would probably be in the Public Documents folder.
Moving ... Thanks MikeyBoy
Maybe the C:\\Program Files is secured by permission because it's a system built-in folder? So I guess the root folder C:\\ would be fine.

Anyway, hope you could find your answer in Lounge.
Topic archived. No new replies allowed.