2

我正在尝试使用文件系统任务创建具有当前日期的文件夹。包成功完成执行,但没有创建文件夹。

我为文件系统任务设置了以下属性

IsSourcePathVariable = True
Operation = Create Directory
SourceVariable = User::DestinationFolder
DestinationRoot = D:\Destination\
DestinationFolder = @[User::DestinationRoot]  + (DT_STR,4,1252)DATEPART( "yyyy" , getdate() ) +
                   RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , getdate() ), 2) +
                   RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , getdate() ), 2)
4

0 回答 0