?
Solved

Open Windows Folder via LotusScript

Posted on 2013-10-25
12
Medium Priority
?
1,947 Views
Last Modified: 2013-12-18
Can you open a windows folder via LotusScript ?  If so, what would that script be ?
0
Comment
Question by:nbtnotes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
12 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39602337
Shell("Explorer.exe C:\", 1)
0
 

Author Comment

by:nbtnotes
ID: 39607118
I want to open a folder, not a file.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39607269
Please define "open"...

Or were you looking for the Dir function, the one that searches a folder and retrieves file names in it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:nbtnotes
ID: 39608570
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
 
LVL 13

Expert Comment

by:CRAK
ID: 39608582
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
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39608632
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
 

Author Comment

by:nbtnotes
ID: 39608669
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
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39609188
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
 

Author Comment

by:nbtnotes
ID: 39609211
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
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 1000 total points
ID: 39609332
*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
 

Author Comment

by:nbtnotes
ID: 39609555
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
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 39609592
Aaaaah! I already started questioning my "guessing" abilities... ;-) Whew!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question