How to create file on c:\

  • Thread starter Thread starter Stoyan Malchev
  • Start date Start date
S

Stoyan Malchev

I have an app that creates some files in c:\.
It fails on VISTA on access violation.

Is it possible to enable access to root directory on drive c:
 
Short answer: yes.

Long answer: but unless your application is an administrative application
doing so is a really bad idea and would, by definition, make your app
non-Vista compliant. Your app should be writing either into the user's data
directory or into some application specific directory under C:\ProgramData.
 
Back
Top