我试图创建一个脚本,需要用户为他们的项目选择起始文件夹。我已经找到了几个源代码,但编码语言不是我使用的。我使用的语言是Autolisp,它很可能会调用shell应用程序来打开所需的GUI。
- Java问题:Browse for folder dialog
- MFC和visual-C++问题:CFileDialog :: Browse folders
此外,还有Lee Mac创建的代码,它很接近,但它使用了一个对话框,如果给定了起始目录,则限制用户访问父目录:Browse for Folder
有没有一种方法可以打开“选择文件夹”GUI,如下图所示,最好使用AutoLisp?
1条答案
按热度按时间j91ykkif1#
我熟悉的唯一其他方法(除了利用Windows Shell对象的BrowseForFolder方法- per this example)以及暴露于ActiveX的方法是利用MS Office File Dialog对象,例如:
示例
然而,由于使用从MS Office应用对象导出的方法来调用对话框,因此这需要示例化所述应用对象,并且因此显然不是完全干净的结果。