Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pemission to create a directory
Hi NG,
I have created an addin which is installed under the Program Files directory (%ProgramFiles%\myCompany\myApp). Every now and then the addin archives some files in the %Program Fies%\myCompany\myApp\Arch\Year directory but it will need to create these directories on the fly. Obviously, I have no trouble but then I have administrator rights on my machine. Will all users be able to create these directories on win2000 and winXP machines or am I going to have trouble with some users not having permission to make a directory. Thanks, Fred |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pemission to create a directory
Hi Fred
You will have tons of trouble, trust me on this :-) The places you can assume that users can write, create and delete is in My Documents, in Temp and a few other places under "Documents and settings". None of those paths can be hardcoded, so you need to read them on startup. Randy Birch has good code at http://vbnet.mvps.org/index.html?code/browse/csidl.htm for this. HTH. Best wishes Harald "fred" skrev i melding ... Hi NG, I have created an addin which is installed under the Program Files directory (%ProgramFiles%\myCompany\myApp). Every now and then the addin archives some files in the %Program Fies%\myCompany\myApp\Arch\Year directory but it will need to create these directories on the fly. Obviously, I have no trouble but then I have administrator rights on my machine. Will all users be able to create these directories on win2000 and winXP machines or am I going to have trouble with some users not having permission to make a directory. Thanks, Fred |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Pemission to create a directory
Thanks Harald, looks like I have some work to do to change all of the
directory references. Fred "Harald Staff" wrote in message ... Hi Fred You will have tons of trouble, trust me on this :-) The places you can assume that users can write, create and delete is in My Documents, in Temp and a few other places under "Documents and settings". None of those paths can be hardcoded, so you need to read them on startup. Randy Birch has good code at http://vbnet.mvps.org/index.html?code/browse/csidl.htm for this. HTH. Best wishes Harald "fred" skrev i melding ... Hi NG, I have created an addin which is installed under the Program Files directory (%ProgramFiles%\myCompany\myApp). Every now and then the addin archives some files in the %Program Fies%\myCompany\myApp\Arch\Year directory but it will need to create these directories on the fly. Obviously, I have no trouble but then I have administrator rights on my machine. Will all users be able to create these directories on win2000 and winXP machines or am I going to have trouble with some users not having permission to make a directory. Thanks, Fred |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Create Directory Structure from Cell Value. | Excel Discussion (Misc queries) | |||
How can I create a class reunion directory from a spreadsheet? | Excel Discussion (Misc queries) | |||
Create a Backup in Different Directory | Excel Discussion (Misc queries) | |||
Save to directory and create if not exist | Excel Programming | |||
Create directory | Excel Programming |