Home All Groups Group Topic Archive Search About

write to disk and permissions

Author
10 Mar 2006 2:41 PM
Dan Reber
My application frequently writes to disk, I currently write to the
application path and delete the files when done.  The majority of my clients
are in the medical industry and they lock down the PCs and don't like or
forget to give the windows account the permission to write to the
application directory.  Is there a directory that I should use that all
users have the proper permissions to write/delete files?

Thanks

Dan

Author
10 Mar 2006 2:59 PM
Robert Comer
Get the temp path from the %TEMP% environment variable.

At least I've never heard of temp being locked down like that, it would
break a lot of system stuff...

--
Bob Comer



Show quoteHide quote
"Dan Reber" <dreber@nospam.com> wrote in message
news:%23NRnvCFRGHA.2276@tk2msftngp13.phx.gbl...
> My application frequently writes to disk, I currently write to the
> application path and delete the files when done.  The majority of my
> clients are in the medical industry and they lock down the PCs and don't
> like or forget to give the windows account the permission to write to the
> application directory.  Is there a directory that I should use that all
> users have the proper permissions to write/delete files?
>
> Thanks
>
> Dan
>
Are all your drivers up to date? click for free checkup

Author
10 Mar 2006 3:14 PM
Dan Reber
Should I create my own folder or write to the root?

Thanks

Dan


Show quoteHide quote
"Robert Comer" <bobco***@mindspring.com> wrote in message
news:uFGqPNFRGHA.5552@TK2MSFTNGP14.phx.gbl...
> Get the temp path from the %TEMP% environment variable.
>
> At least I've never heard of temp being locked down like that, it would
> break a lot of system stuff...
>
> --
> Bob Comer
>
>
>
> "Dan Reber" <dreber@nospam.com> wrote in message
> news:%23NRnvCFRGHA.2276@tk2msftngp13.phx.gbl...
>> My application frequently writes to disk, I currently write to the
>> application path and delete the files when done.  The majority of my
>> clients are in the medical industry and they lock down the PCs and don't
>> like or forget to give the windows account the permission to write to the
>> application directory.  Is there a directory that I should use that all
>> users have the proper permissions to write/delete files?
>>
>> Thanks
>>
>> Dan
>>
>
>
Author
10 Mar 2006 3:19 PM
Robert Comer
I would create my own folder just to keep things organized, but I really
don't know if it would make a difference.

--
Bob Comer



Show quoteHide quote
"Dan Reber" <dreber@nospam.com> wrote in message
news:OIWBpVFRGHA.4452@TK2MSFTNGP12.phx.gbl...
> Should I create my own folder or write to the root?
>
> Thanks
>
> Dan
>
>
> "Robert Comer" <bobco***@mindspring.com> wrote in message
> news:uFGqPNFRGHA.5552@TK2MSFTNGP14.phx.gbl...
>> Get the temp path from the %TEMP% environment variable.
>>
>> At least I've never heard of temp being locked down like that, it would
>> break a lot of system stuff...
>>
>> --
>> Bob Comer
>>
>>
>>
>> "Dan Reber" <dreber@nospam.com> wrote in message
>> news:%23NRnvCFRGHA.2276@tk2msftngp13.phx.gbl...
>>> My application frequently writes to disk, I currently write to the
>>> application path and delete the files when done.  The majority of my
>>> clients are in the medical industry and they lock down the PCs and don't
>>> like or forget to give the windows account the permission to write to
>>> the application directory.  Is there a directory that I should use that
>>> all users have the proper permissions to write/delete files?
>>>
>>> Thanks
>>>
>>> Dan
>>>
>>
>>
>
>
Author
10 Mar 2006 3:34 PM
Nospam
I have meet the same problem of systems locked down like this
What I do is when I start up, is to create a directory (always the same name
and not worrying if it already exists) and then write to a test file (Random
names), modify the test file and then delete the test file.
If any stage of this fails then I put up a plain text warning of what is
wrong, and when they click the only button, the program automatically
terminates.
This ensures that they know WHY the program refuses to run and gives enough
information for the IT people to sort out the issue.

So far, no customer has not been able to sort out the issue and it ensures
that you have a working directory.

The directory is then the one I use for any temporary files I need.

John..


Show quoteHide quote
"Dan Reber" <dreber@nospam.com> wrote in message
news:OIWBpVFRGHA.4452@TK2MSFTNGP12.phx.gbl...
> Should I create my own folder or write to the root?
>
> Thanks
>
> Dan
>
>
> "Robert Comer" <bobco***@mindspring.com> wrote in message
> news:uFGqPNFRGHA.5552@TK2MSFTNGP14.phx.gbl...
> > Get the temp path from the %TEMP% environment variable.
> >
> > At least I've never heard of temp being locked down like that, it would
> > break a lot of system stuff...
> >
> > --
> > Bob Comer
> >
> >
> >
> > "Dan Reber" <dreber@nospam.com> wrote in message
> > news:%23NRnvCFRGHA.2276@tk2msftngp13.phx.gbl...
> >> My application frequently writes to disk, I currently write to the
> >> application path and delete the files when done.  The majority of my
> >> clients are in the medical industry and they lock down the PCs and
don't
> >> like or forget to give the windows account the permission to write to
the
> >> application directory.  Is there a directory that I should use that all
> >> users have the proper permissions to write/delete files?
> >>
> >> Thanks
> >>
> >> Dan
> >>
> >
> >
>
>

Bookmark and Share

Post Thread options