hi,
i got an exception while i m trying to zip/unzip a database inside the serverfolder
the database is being used by another process.
i have to zip this database and download it provided it can be used by another process.
how can i do this
i use the following code for zipping/unzipping
for zipping
--------------
for unzipping
-----------------
please help
thanks in advance
Grace
i got an exception while i m trying to zip/unzip a database inside the serverfolder
Code:
System.IO.IOException: The process cannot access the file 'E:\hshome\holsoftsystems\indusmotor.co.in\MTNMRN1\MTNMRN1\MTNMRN2\Hrm123.ldb' because it is being used by another process.
i have to zip this database and download it provided it can be used by another process.
how can i do this
i use the following code for zipping/unzipping
for zipping
--------------
Code:
Protected Sub btnZip_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnZip.Click
MultipleFileUploadForm.Visible = False
Dim fz As New FastZip
fz.CreateZip(Server.MapPath("Hrm123.zip"), Server.MapPath("MTNMRN1/MTNMRN2"), True, "", "")
ResultMsg.Visible = True
ResultMsg.Text = "The zipping operation completed successfully"
End Sub
for unzipping
-----------------
Code:
Protected Sub btnUnzip_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUnzip.Click
MultipleFileUploadForm.Visible = False
Dim fz As New FastZip
fz.ExtractZip(Server.MapPath("MTNMRN1/Hrm123.zip"), Server.MapPath("MTNMRN1/MTNMRN2"), "")
ResultMsg.Visible = True
ResultMsg.Text = "The files extracted successfully"
End Sub
please help
thanks in advance
Grace
Comment