开发者

How to configure 'Copy file' and 'Move file' operations in File System Task?

Looking at the MSDN File Sy开发者_JS百科stem Task Editor (General Page) article, it is not clear to me what should be supplied for the source and target values.

It says "When moving a file, do not include a file name in the directory path that you provide as the destination." for move file, but not for copy file.

I would've thought that I could supply

SourceVariable = User::MyFileName     
DestinationVariable = User::MyDestinationFolder     

I'm not having any joy with either move or copy file. The MyFileName var should be set during a ForEach container using *.ext, but from looking in the watch window, it appears to be set to filename.ext and not c:\source\filename.ext.

In an earlier part of the package, I'm using the same logic to open and read the files and it's working fine. What could be the issue here?


I had failed to notice the radio buttons on the foreach container, specifically I did not have 'fully qualified' set.

I still don't understand why the 'file opening' part of my package is working perfectly, given that it does not appear to use the path.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜