ziele_o2k Posted April 12, 2016 Share Posted April 12, 2016 Hi, I found Browse for folder Lisp at Lee Mac's site but I have one question. Is there any way to get access to folders above my root directory? And if there is no way, could somone explain me why (as process of educating my lisp skills ) Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 12, 2016 Share Posted April 12, 2016 I found Browse for folder Lisp at Lee Mac's site but I have one question.Is there any way to get access to folders above my root directory? And if there is no way, could somone explain me why (as process of educating my lisp skills ) I'm guessing that you are trying to display the folder selection prompt initialised at a given default directory, whilst still allowing the user to select any folder? Unfortunately I am not aware of any way to achieve this - my Browse for Folder function is simply an AutoLISP wrapper for the BrowseForFolder method of the Windows Shell Object, therefore, the behaviour of the dialog is controlled by this method and cannot be altered by the AutoLISP calling function (except through the use of parameters). As noted in the MSDN documentation, the root directory parameter is designed to restrict the user to browsing beneath a given root directory: The root folder to use in the dialog box. The user cannot browse higher in the tree than this folder. If this value is not specified, the root folder used in the dialog box is the desktop. Quote Link to comment Share on other sites More sharing options...
ziele_o2k Posted April 13, 2016 Author Share Posted April 13, 2016 I'm guessing that you are trying to display the folder selection prompt initialised at a given default directory, whilst still allowing the user to select any folder? Yes! Unfortunately I am not aware of any way to achieve this - my Browse for Folder function is simply an AutoLISP wrapper for the BrowseForFolder method of the Windows Shell Object, therefore, the behaviour of the dialog is controlled by this method and cannot be altered by the AutoLISP calling function (except through the use of parameters). As noted in the MSDN documentation, the root directory parameter is designed to restrict the user to browsing beneath a given root directory: I searched web and I figured out that for my purpose would be usefull function SHBrowseForFolder, but usage of this function isn't clear to me, so i will live with current solution. Thank you Lee for directing me where to search answers. As always, sorry for my english Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted April 13, 2016 Share Posted April 13, 2016 You're welcome - and your English is fine! Quote Link to comment Share on other sites More sharing options...
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.