hi
I have a folder with a zip file like this:
c:\test\aaa.zip
using the code below I can extract the files but in the same folder .."c:\test\aaa\*.files"
How can I modofy the code in oreder to extract the file in my orignal directory "C:\test" and not in C:\test\aaa\?
Set fso = CreateObject("Scripting.FileSystemObject")
path="c:\FILEXML"
set folder = fso.GetFolder(path)
for each file in folder.files
if (fso.GetExtensionName(file.path)) = "zip" then
set objShell = CreateObject("Shell.Application")
objshell.NameSpace(path).CopyHere objshell.NameSpace(file.path).Items
' file.delete
end if
thanks
I have a folder with a zip file like this:
c:\test\aaa.zip
using the code below I can extract the files but in the same folder .."c:\test\aaa\*.files"
How can I modofy the code in oreder to extract the file in my orignal directory "C:\test" and not in C:\test\aaa\?
Set fso = CreateObject("Scripting.FileSystemObject")
path="c:\FILEXML"
set folder = fso.GetFolder(path)
for each file in folder.files
if (fso.GetExtensionName(file.path)) = "zip" then
set objShell = CreateObject("Shell.Application")
objshell.NameSpace(path).CopyHere objshell.NameSpace(file.path).Items
' file.delete
end if
thanks