I have a file that I need to download daily. I save it in the same spot everyday. It saves it as S:\ERETR\Downloads\00 Year-to-date.xml.zip\00 Year-to-date.xml
First I check to see if the process file exists? if so kill it so I can recreate it from the new download
Dim FSO
Dim file as String
file = "s:\ERETR\ProgramFiles\ToProcessOPN.xls"
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(file) Then
Kill "s:\ERETR\ProgramFiles\ToProcessOPN.xls"
End If
the above works fine.
Next I need to unzip this file?
I need this....
S:\ERETR\Downloads\00 Year-to-date.xml.zip\00 Year-to-date.xml
to become this...
S:\ERETR\Downloads\00 Year-to-date.xml
the last thing I tried is this..
Set FSO = CreateObject("Shell.Application")
FSO.Namespace("S:\ERETR\Downloads\").CopyHere FSO.Namespace("00 Year-to-date.xml").items
Any Suggestions? am I sorta on the right track? I get an object variable is not set error message
TIA
First I check to see if the process file exists? if so kill it so I can recreate it from the new download
Dim FSO
Dim file as String
file = "s:\ERETR\ProgramFiles\ToProcessOPN.xls"
Set FSO = CreateObject("Scripting.FileSystemObject")
If FSO.FileExists(file) Then
Kill "s:\ERETR\ProgramFiles\ToProcessOPN.xls"
End If
the above works fine.
Next I need to unzip this file?
I need this....
S:\ERETR\Downloads\00 Year-to-date.xml.zip\00 Year-to-date.xml
to become this...
S:\ERETR\Downloads\00 Year-to-date.xml
the last thing I tried is this..
Set FSO = CreateObject("Shell.Application")
FSO.Namespace("S:\ERETR\Downloads\").CopyHere FSO.Namespace("00 Year-to-date.xml").items
Any Suggestions? am I sorta on the right track? I get an object variable is not set error message
TIA