
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I wrote an Autolisp routine to update a bundle in the ApplicationPlugins folder. I first unload everything and delete the .bundle folder and then copy the new one to replace. It works well on the 64-bit platform (Window 7 64-bit and AutoCAD 64-bit) but I get an error on the 32-bit (Windows 7 32-bit and AutoCAD 32-bit).
I use the following code to delete the .bundle folder and I get an error at line 5.
1. (defun deleteFolder (folderPath /)
2. (setq fso (vlax-create-object "Scripting.FileSystemObject"))
3. (vlax-dump-object fso T)
4. (if (= -1 (vlax-invoke fso 'FolderExists folderPath))
5. (vlax-invoke fso 'DeleteFolder folderPath :vlax-true)
6. )
7. (vlax-release-object fso)
8. )
When I try to manually delete the bundle on the 32-bit platform I get a message saying that the .bundle folder "can't be deleted because it's used by another application"... I unload everything before trying to delete the folder but it still doesn't work. Why does it behave differently on the 64-bit platform? Is it a limitation of Windows 7 32-bit?
Thank you,
Marie
Solved! Go to Solution.