Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
30.05.2013, 23:00
|
|||
---|---|---|---|
|
|||
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 ... |
|||
:
Нравится:
Не нравится:
|
|||
|
|
start [/forum/topic.php?fid=20&mobile=1&tid=1404593]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
142ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
41ms |
get tp. blocked users: |
9ms |
others: | 11ms |
total: | 246ms |
0 / 0 |