Create a folder in the Data directory

Hi

I need to make a empty folder in the Data folder on the server. Is there a way to this in Lotusscript?

Regards

Subject: Create a folder in the Data directory

Look at the mkdir statement.Of course, the agent signer need to have access to perform restrictive functions. Make sure you understand the security implications of what you are doing

I most cases I don’t see a need to create folders in the Data directory, use a directory outside the Domino structure instead.

My advise would be not to do it.

Subject: RE: Create a folder in the Data directory

HI

Thank you for the response. This code is not for a scheduled agent. it will be placed under an action button in an application. Will the mkdir then also work?

Regards

Subject: As long as the agent signer has rights to do it, yes.

If you are running the agent with the web users credentials, then it depends on what rights that user has.

Subject: RE: Create a folder in the Data directory

If I can expand a bit on Carl’s post, if the app is Notes client based, then:

If the code runs under the user’s credentials, then mkdir works on the user’s system unless you’re allowing them to map drives on the Domino server and if you’re doing that, well then you are well and completely hosed! :wink:

If the code is in an agent, then make sure the agent ‘runs on server’ and the agent signers is allowed to make directories.