|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
write to disk and permissionsMy 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 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... -- Show quoteHide quoteBob 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 > 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 >> > > I would create my own folder just to keep things organized, but I really
don't know if it would make a difference. -- Show quoteHide quoteBob Comer "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 >>> >> >> > > 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 > >> > > > > > >
Password Change
how to convert string to date? Text to Speech VB6 writing to text files requires Close to commit TransparentBlt and Autoredraw issues (refresh isnt solving it) Picturebox fit newbe question Code for stored procedures Call a DLL in C from VB Using VB to screen scrape a 3270 mainframe Error to create a package in VB6 |
|||||||||||||||||||||||