如何在运行时使用日期创建zip文件 [英] how to create zip file at run time with date

查看:81
本文介绍了如何在运行时使用日期创建zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



在我的应用程序中,我将数据库.mdf和.ldf文件复制到一个位置。

 RESTORE DATABASE  & cmbdatabase.Text& FROM disk =  & OpenFileDialog1.FileName&'WITH MOVE'a'TO'C:\ Backup \ a.mdf',将'a_log'移动到'C:\ Backup \ a.ldf',更换 





我要复制带有日期和时间的zip文件形式的.mdf和.ldf文件,这样我就可以多次复制多个...



请帮助..

解决方案

看看这个:-)



http://dotnetzip.codeplex.com/ [ ^ ]

Hi all

In my application i m coping the database .mdf and .ldf file to a location.

RESTORE DATABASE " & cmbdatabase.Text & " FROM disk='" & OpenFileDialog1.FileName & "'  WITH MOVE 'a' TO 'C:\Backup\a.mdf', Move 'a_log' TO 'C:\Backup\a.ldf',REPLACE



I want to copy the .mdf and .ldf file in form of zip file with date and time so that i can copy multiple more then once...

Please help..

解决方案

Have a look at this :-)

http://dotnetzip.codeplex.com/[^]


这篇关于如何在运行时使用日期创建zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆