robierzo Posted December 21, 2023 Posted December 21, 2023 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. Quote
pkenewell Posted December 21, 2023 Posted December 21, 2023 (edited) 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 December 21, 2023 by pkenewell 1 Quote
robierzo Posted December 21, 2023 Author Posted December 21, 2023 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. 1 Quote
Recommended Posts
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.