A caveat for the FileSystemObject Delete methods in Visual Basic
As you know, the Microsoft Scripting Runtime object library makes it easy to manipulate files and folders. With the DeleteFolder and DeleteFile methods, you can eliminate unwanted items. However, these methods will abort if they encounter an error--and they don注释:t rollback the changes they made up to that point. For instance, if a method deletes two folders out of ten and an error occurs, Visual Basic aborts the operation and only the first two items will have been deleted. Several FileSystemObject methods operate this way.
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073