在vb.net中迭代以获取文件

编程入门 行业动态 更新时间:2024-10-23 14:33:27
本文介绍了在vb中迭代以获取文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我是ssis的vb脚本新手。我有两张桌子。我有源文件夹和目标文件夹。我必须将文件从源文件夹移动到目标文件夹。这些文件路径和名称在表中指定。建议我一个逻辑,以便我不应该处理目标文件夹中的文件。每月约有600个文件。我必须创建一个列表,使其包含目标文件夹中没有的文件。目的地路径将在其他表中

解决方案

请先阅读我的评论。 这是一个想法: Foreach循环容器 [ ^ ]

TN写道:

SQL Server Integration Services提供以下枚举器类型:

  • ...
  • Foreach 文件枚举器,用于枚举文件夹中的文件。枚举器可以遍历子文件夹。例如,您可以在Windows文件夹及其子文件夹中读取所有具有* .log文件扩展名的文件。
  • ....

Hi All, I am new to vb scripting in ssis. i have two tables. i have source folder and destination folder.i have to move files from source folder to destination folder.these files path and name are specified in table. suggest me a logic such that i should not process the files which are there in destination folder. there are around 600 files coming monthly. i have to create a list such that it consists of files which are not there in destination folder. destination path will be there in other table

解决方案

Please, read my comment first. Here is an idea: Foreach Loop Container[^]

TN wrote:

SQL Server Integration Services provides the following enumerator types:

  • ...
  • Foreach File enumerator to enumerate files in a folder. The enumerator can traverse subfolders. For example, you can read all the files that have the *.log file name extension in the Windows folder and its subfolders.
  • ....

更多推荐

在vb.net中迭代以获取文件

本文发布于:2023-11-04 05:28:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1557074.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:迭代   文件   vb   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!