标题:[求助]CopyFile方法
只看楼主
cyyu_ryh
Rank: 8Rank: 8
等 级:贵宾
威 望:45
帖 子:1899
专家分:176
注 册:2006-10-21
结帖率:100%
 问题点数:0 回复次数:0 
[求助]CopyFile方法

下面的示例完整地显示上述代码段,该示例将指定目录中的所有 .rtf 文件复制到名为 testdirectory 的目录中。
麻烦各个解释一下
For Each foundFile As String In My.Computer.FileSystem.GetFiles( _
My.Computer.FileSystem.SpecialDirectories.MyDocuments, _
FileIO.SearchOption.SearchTopLevelOnly, "*.rtf")

My.Computer.FileSystem.CopyFile(foundFile, "C:\testdirectory\" & foundFile)
Next

搜索更多相关主题的帖子: CopyFile Computer rtf FileSystem foundFile 
2007-03-28 17:13



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-127553-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.270636 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved