A family of Microsoft relational database management systems designed for ease of use.
very weird; if i unzip the files manually and copy them to the folder then the routine to rename them works fine! Which points to either my code for unzipping them is somehow preventing them from being renamed or ?? See below for the code i am using.
I think i am going to have to give up and unzip them manually but it would be nice not to and also know why it does not work
regards
Spike
'strFileNameGZ (file to be unzipped)
'strUnZipFolder(folder to plug unzipped files into)
Sub UnZip_GZFile(strFileNameGZ As String, strUnZipFolder As String)
Dim Path7Z As String
Dim FileNameGZ As String
Dim ShellStr As String
'path to unzip app
Path7Z = "C:\Program Files\GZ_App"
'Check if this is the path where 7zFM is installed.
If Dir(Path7Z & "7zFM.exe") = "" Then
MsgBox "Please find the app 7za.exe and try again" _
& Chr(13) & "Either install it in 'C:\Program Files\GZ_App' or change the location in the code" _
& Chr(13) & "As the macro cannot continue it will now close"
bolFail = True
Exit Sub
End If
'Unzip the zip file in to the folder for unzipped files
ShellStr = Path7Z & "7z.exe e" & " " & Chr(34) & strFileNameGZ & Chr(34) & " -o" & Chr(34) & strUnZipFolder & Chr(34)
'run the unzip app
Call Shell(ShellStr, vbHide)
End Sub