|
Output: compress the file with the directory, but i need just the compressed file.
|
|||
---|---|---|---|
#18+
public void Main() { string folderDirectory = Dts.Variables["dirDestinationFolder"].Value.ToString(); string fileName = "Report " + Dts.Variables["varEndDate"].Value.ToString() + ".xls"; CompressReportsFolder(fileName, folderDirectory); Dts.TaskResult = (int)ScriptResults.Success; } public void CompressReportsFolder(string fileName, string folderDirectory) { ZipFile zip = new ZipFile(); string strOriginFilewithPath = folderDirectory + fileName; zip.AddFile(strOriginFilewithPath); string strCompressedFilewithPath = folderDirectory + fileName.Replace(".xls", ".zip"); zip.Save(strCompressedFilewithPath); } Output: compress the file with the directory, but i need just the compressed file. Thanks ... |
|||
:
Нравится:
Не нравится:
|
|||
30.05.2013, 23:00 |
|
|
start [/forum/topic.php?fid=20&fpage=161&tid=1404593]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
42ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
45ms |
get tp. blocked users: |
2ms |
others: | 308ms |
total: | 442ms |
0 / 0 |