|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
higher security settings in Windows 7Hello,
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 Am 18.05.2010 00:20, schrieb Scott Baxter:
> Hello, Use a directory where access is permitted.> > 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 Where is that directory?> when they run. The files are under its own application directory. -- Armin "Scott Baxter" <sc***@websearchstore.com> wrote in message That's the problem. Assuming you've installed the application in Program news:#9#ce8g9KHA.5412@TK2MSFTNGP06.phx.gbl... > The files are under its own application directory. 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 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 Show quoteHide quote "Scott Baxter" <sc***@websearchstore.com> wrote in message news:#9#ce8g9KHA.5412@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 Scott Baxter wrote:
> Hello, Program Folder is a protected folder on Win 7. You can't write program > > 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. > 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. Thanks for all the help from everybody
Scott Show quoteHide quote "Mr. Arnold" <Arn***@Arnold.com> wrote in message news:uiWnlYn9KHA.1892@TK2MSFTNGP05.phx.gbl... > 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.
where will the experts go when ms deletes this ng?
Programmatically creating a pass-through query Windows Search Windows Search IsRemoteAdmin function Monitoring and debugging applications How to change BindingSource ConnectString at runtime Urgent HELP needed..... After installing, app crashes handle activeX dll Generated event in my WPF/.NET application Impersonation without passing username and password. |
|||||||||||||||||||||||