Where should I put files

A

Alex

Hello,

My add-in uses an external template to set the Application.CustomizationContext (as to not muck up NORMAL.DOT) and to hold some macros that have no equivalent in the Add-in.

Where is a good place to keep the template so that the user is guaranteed R/W access to it?

Best wishes,
Alex.
 
P

Peter Huang [MSFT]

Hi

Do you mean the dot file as a template for word?
If so I think you may try to put in the User's profile directory.
e.g.
%userprofile%\Application Data\Microsoft\Word\STARTUP

But in this way, you have to store copies for each user.
Also Windows XP has Shared Documents Folder
<Documents and Settings>\All Users\Documents
The Shared Documents folder in My Documents is new in Windows XP
Professional. This folder appears when two or more user accounts are
created on the local computer. Files can be shared among multiple users of
the same computer. In a network environment, files can be copied or moved
to a folder on another computer.

By default, the Shared Documents folder is automatically shared and made
accessible to all other computers on the network.

But we can not stop the administrator from disabling folders on the
computer for sharing. So I think we can not guarantee certain folder will
be accessible in any situation.
e.g. %userprofile%\Application Data\Microsoft\Word\STARTUP is also a common
folder, but the administrator can prevent anyone from access to it and even
delete it.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
A

Alex

Hello Peter,

"Peter Huang" said:
Hi

Do you mean the dot file as a template for word?
If so I think you may try to put in the User's profile directory.
e.g.
%userprofile%\Application Data\Microsoft\Word\STARTUP

I do not want the user to be able to create documents based on this template.
It is strictly for internal use by the add-in.
But in this way, you have to store copies for each user.
Also Windows XP has Shared Documents Folder
<Documents and Settings>\All Users\Documents
The Shared Documents folder in My Documents is new in Windows XP
Professional. This folder appears when two or more user accounts are
created on the local computer. Files can be shared among multiple users of
the same computer. In a network environment, files can be copied or moved
to a folder on another computer.

By default, the Shared Documents folder is automatically shared and made
accessible to all other computers on the network.

What about Windows 2000?
But we can not stop the administrator from disabling folders on the
computer for sharing. So I think we can not guarantee certain folder will
be accessible in any situation.
e.g. %userprofile%\Application Data\Microsoft\Word\STARTUP is also a common
folder, but the administrator can prevent anyone from access to it and even
delete it.

What about the user's local directory?
I mean, there must be a directory somewhere that the user always has write access to, right?


Best wishes,
Alex.
 
P

Peter Huang [MSFT]

Hi Alex,

By default, the %userprofile% is a folder which current logon user will
have r/w permission.
But as I said before the administrator has power to deny you from access to
that, even it can prevent certain user from logon the machine.

So I think in common environment, you can store the file in the
%userprofile% folder or its subfolder.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top