Prev: where will the experts go when ms deletes this ng?
Next: Installing Visual Studio Express 2010 and SQL Express R2
From: Scott Baxter on 17 May 2010 18:20 Hello, My application (visual studio 2008, visual basic) writes out a few files when it runs. On Windows 7, it fails at startup, apparently because access is denied to write these files. It also creates databases while it runs. How do I get around this security problem. I'm sure many programs need to write files when they run. The files are under its own application directory. Thanks. Scott Baxter
From: Armin Zingler on 17 May 2010 18:47 Am 18.05.2010 00:20, schrieb Scott Baxter: > Hello, > > My application (visual studio 2008, visual basic) writes out a few files > when it runs. > > On Windows 7, it fails at startup, apparently because access is denied to > write these files. It also creates databases while it runs. How do I get > around this security problem. Use a directory where access is permitted. > I'm sure many programs need to write files > when they run. The files are under its own application directory. Where is that directory? -- Armin
From: Cor Ligthert[MVP] on 18 May 2010 03:05 Hi Scott, Looking at this enumeration gives for the most direct an idea. http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx Cor "Scott Baxter" <scott(a)websearchstore.com> wrote in message news:#9#ce8g9KHA.5412(a)TK2MSFTNGP06.phx.gbl... > Hello, > > My application (visual studio 2008, visual basic) writes out a few files > when it runs. > > On Windows 7, it fails at startup, apparently because access is denied to > write these files. It also creates databases while it runs. How do I get > around this security problem. I'm sure many programs need to write files > when they run. The files are under its own application directory. > > Thanks. > > Scott Baxter
From: Steve Thackery on 17 May 2010 19:25 "Scott Baxter" <scott(a)websearchstore.com> wrote in message news:#9#ce8g9KHA.5412(a)TK2MSFTNGP06.phx.gbl... > The files are under its own application directory. That's the problem. Assuming you've installed the application in Program Files, you aren't allowed to write to that area from your application. W7 stops you, but you shouldn't be doing it anyway - look for the Windows XP Programming Guidelines which Microsoft published back when XP first came out. You can write your files to various locations - typically in Users/<user>/AppData/... SteveT
From: Mr. Arnold on 18 May 2010 06:37
Scott Baxter wrote: > Hello, > > My application (visual studio 2008, visual basic) writes out a few > files when it runs. > > On Windows 7, it fails at startup, apparently because access is denied > to write these files. It also creates databases while it runs. How do > I get around this security problem. I'm sure many programs need to > write files when they run. The files are under its own application > directory. > Program Folder is a protected folder on Win 7. You can't write program data or files to that folder. You have ProgramData folder, a hidden folder, that you can write to for a program's data and files. |