Click here to Skip to main content
15,888,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

In my application i m coping the database .mdf and .ldf file to a location.
VB
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..
Posted
Updated 10-Apr-13 1:41am
v2

1 solution

Have a look at this :-)

http://dotnetzip.codeplex.com/[^]
 
Share this answer
 
Comments
[no name] 10-Apr-13 7:40am    
See this is my code
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

Now as u can see i am coping two files at a location..so i want those two files as a zip file.
Mitchell J. 10-Apr-13 7:43am    
Ah, sorry I'm not familiar with that code language :-(
[no name] 10-Apr-13 7:43am    
ok..it's vb.net..
Mitchell J. 10-Apr-13 7:51am    
I'm a C# programmer. Can't help.
Surely you can use Ionic.Zip.dll in VB.NET though?
[no name] 10-Apr-13 7:57am    
actually i am not looking to use any third party tool or resource...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900