working on a part of my program and need to extract all files in a folder to the same folder and finish up the sub by deleting all files with an ext of .mdoc
this is what i'm trying but i'm not having too much luck. anyone else out there have any ideas??
Code:Public Sub btn_7zip_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_7zip.Click 'command line to extract .mdoc files to .pcl files using 7zip Try Dim Arg1 As String = "x -0" Dim Zip As String = "\\cps1\m3\test\Q113 - y" Dim path As String = G.StagingDirectory Process.Start("C:\Program Files \7-Zip\7z.exe", Arg1 + path + " " + Zip) Catch ex As Exception MessageBox.Show("Error: Extraction Failed") End Try End Sub




Reply With Quote