ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pemission to create a directory (https://www.excelbanter.com/excel-programming/324478-pemission-create-directory.html)

fred

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



Harald Staff

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





fred

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








All times are GMT +1. The time now is 01:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com