Launching a windows command from within notes doc

i have the following code:

Dim result As Integer

Dim r As String

r = "\\bkhagsrv1"

result = Shell("Explorer.exe", 1)

I would like to run explorer.exe with the r argument, so that explorer starts in that folder. How can this be done ?

Thanks

jacob

Subject: launching a windows command from within notes doc

Just change the shell function like this :

result = Shell("Explorer.exe " & r, 1)

notice the space after the exe