• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2260
  • Last Modified:

Open Windows Folder via LotusScript

Can you open a windows folder via LotusScript ?  If so, what would that script be ?
0
nbtnotes
Asked:
nbtnotes
  • 6
  • 5
1 Solution
 
Sjef BosmanGroupware ConsultantCommented:
Shell("Explorer.exe C:\", 1)
0
 
nbtnotesAuthor Commented:
I want to open a folder, not a file.
0
 
Sjef BosmanGroupware ConsultantCommented:
Please define "open"...

Or were you looking for the Dir function, the one that searches a folder and retrieves file names in it?
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
nbtnotesAuthor Commented:
I want to be able to open a folder within the Windows Explorer just like when you open Windows Explorer to view the C drive or the Programs folder.
0
 
CRAKCommented:
I.M.O. he needs something like notesUIWorkspace.OpenFileDialog(), but for folders.
I can't remember if I even accomplished something like that. There are examples on www but most of them use calls to functions inside (32 bit) dll-files. Never my recommendation!
0
 
Sjef BosmanGroupware ConsultantCommented:
Ach, so "open" is to be defined as: open a folder inside the Notes client in order to find or save a file? Could be, not unlikely...
0
 
nbtnotesAuthor Commented:
I don't want to open anything within Notes. I'm trying to find a script which will allow me to Open a particular folder within Windows Explorer.
0
 
Sjef BosmanGroupware ConsultantCommented:
Now I'm lost... To do what, exactly, what do you want to do when the folder is open? And did you try my first suggestion here, i.e.:

 Shell("Explorer.exe C:\", 1)
0
 
nbtnotesAuthor Commented:
I want to open Windows Explorer, not sure how I can say this any differently.

User Clicks a link and Windows Explorer opens on the Folder path I provide (ie "C:\Test Folder\Sub Folder"). They can then open folders or files, whatever they want to do.
0
 
Sjef BosmanGroupware ConsultantCommented:
*sigh*

Put this code in an agent, with Target set to None:

Option Public
Option Declare

Sub Initialize
      Dim v As Variant
      
      v= Shell("Explorer.exe C:\Test Folder\Sub Folder", 1)
End Sub
0
 
nbtnotesAuthor Commented:
Ok, I got you. I didn't put two and two together that you launch Explorer.exe and add the path. My mind was only on opening a folder and didn't think I needed to indicate an exe.

Thank you for dealing with my confusion :)

My apologizes. That Shell command definitely works.
0
 
Sjef BosmanGroupware ConsultantCommented:
Aaaaah! I already started questioning my "guessing" abilities... ;-) Whew!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now