How to attach a directory?

it’s like opening a dialogbox where you can browse and choose a folder.how to have this on Notes/Web?

cheers

Subject: how to attach a directory?

Figure out the path of the directory you want and attach this to a button or hotspot:

@Command([Execute]; “C:\folder\folder\folder\”

The thing to remember is to double up on the "". The above example in windows explorer is: "C:\folder\folder\folder"

Hope that helps, cheers.

Subject: RE: how to attach a directory?

hum, it’s not exactly what i was trying to do. it’s like when you setup some software on your pc, you have to browse and choose the folder where the programm will be setup. i’m looking for that kind of thing, i would like to have a text field with a button beside, when you click on the button, a small window shows up where you can browse through folders, and when you have chosen the folder then the path appears in the text field, it’s like attaching a file, but you get the path instead (just the path…)cheers

Subject: how to attach a directory?

To select a folder (only) through a dialog box you might try this in a form button (Notes only):

'declarations

Dim ws As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Dim path As String

'get a handle on the uidoc

Set uidoc = ws.CurrentDocument

'prompt the user to choose a folder

path = ws.Prompt ( 14 , “” , “” )

'write selected folder path to a field

Call uidoc.FieldSetText ( “PathField” , path )

hth

ps

I pinched the key part of this code (ws.Prompt) from bookmark.nsf but it’s not documented in the Designer Help so please bear in mind that it might not work in future releases (and certainly doesn’t work pre R6) - title$, prompt$ and [default] are ignored if specified so it’s clearly an irregular case. Also, a couple of agents and three of the script libraries in bookmark.nsf contain code that achieve similar results to Jeremy’s suggestion - to display the directory/folder in Notes if your location document has “Notes with Internet Explorer” specified as the browser, and in a separate window (as per the results of Jeremy’s suggestion) if the browser setting is different.