Path of a file

hi all, how can i get the path of a file that i am trying to upload through my application in lotus script??

Subject: path of a file

Could you be more specific?

Are you already uploading a file? Or do you mean something else.

With the current information I cannot answer it.

Subject: RE: path of a file

If you want to physically select a file for upload, via say Windows, use something like this:

Dim ws As New NotesUIWorkspace

Dim ud As notesuidocument

Set ud = ws.CurrentDocument

Dim FileNames As Variant

Dim FileName As String

filenames = ws.OpenFileDialog(False,"Select File For Import","","c:\",)



If Not(Isempty(filenames)) Then

	filename=filenames(0)

End If

Filename will be the full path of the file.

Subject: RE: path of a file

or @Prompt([LOCALBROWSE])

Subject: path of a file - Dir function

Dir function

'check for ~notes.lck

If (Dir$(“c:\notes\data~notes.lck”, 0) <> “”) Then

Print “file found”

End If

Or, from the help db.

’ List the contents of the c:\ directory, one entry per line.

Dim pathName As String, fileName As String

pathName$ = “c:*.*”

fileName$ = Dir$(pathName$, 0)

Do While fileName$ <> “”

Print fileName$

fileName$ = Dir$()

Loop