Jump to content

Select Folder


robierzo

Recommended Posts

Hello. I am using this code to select a folder.

(setq shl (vlax-create-object "Shell.Application"))
  (setq path (vlax-invoke shl 'browseforfolder 0 "Selecciona carpeta" 512 "D:\\Rober\\Raiz\\"));OBJ carpeta
  (setq path (vlax-get-property (vlax-get-property path 'self) 'path))


But it won't let me go back. In the example, it doesn't allow me to visit the "Rober" folder. How can I solve it?
Thank you.

Link to comment
Share on other sites

That is a problem inherent in the "BrowseForFolder" Method; whatever path you start with becomes the root, and you can't navigate above it.

This requires the Express tools, but using the function (acet-ui-pickdir "Select a folder:" "C:\\Temp\\") does not have this issue.

Edited by pkenewell
  • Like 1
Link to comment
Share on other sites

2 hours ago, pkenewell said:

That is a problem inherent in the "BrowseForFolder" Method; whatever path you start with becomes the root, and you can't navigate above it.

This requires the Express tools, but using the function (acet-ui-pickdir "Select a folder:" "C:\\Temp\\") does not have this issue.

 Thank you so much, pkenewell. He is perfect.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...