C program to create a file in root directory

Microsoft Windows 7 home premium upgrade...
April 9, 2010 at 00:21:59
Specs: Windows 7
I have a VC++ program to create a file in root directory (C:\) in Windows XP. But the same application running Win 7 throws the error as "a required privilege is not held by the client". Although I can enter in with admin privileges, I dont want to do it. I want this application to run on all login conditions. So the solution would be for it to access MyDocuments folder where anything can be written without any error. How can it be done using WIndows APIs. No hardcoding of location is possible since the user may vary. Also, i want this app to run on XP, 2K, Vista and Win 7. Pls help

See More: C program to create a file in root directory

April 9, 2010 at 04:14:14
Probably the application is not compatible with Windows versions above XP, or just not compatible with Win 7, as is the case with many applications that require an update for Win 7.

Report •

April 9, 2010 at 07:30:23

edited by moderator: Fixed link -Razor2.3

Report •

April 10, 2010 at 03:11:08
So long are the days you can write to any folder, as any user.

Report •
Related Solutions

Ask Question