Forum Discussion
Oferv
13 years agoSuper Contributor
Hi Irina,
i always get to the same point where i find solutions people posted but it's in vbscript what makes it harder/impossible to run in c#script
can you please convert this code to something i'll be able to run in c#script?
'Specifies the location of the zip file.
ZipFile="D:\Test\Test.zip"
'Specifies the folder the contents should be extracted to.
ExtractTo="D:\Test\"
'If the extraction location does not exist, create it.
Set fso = CreateObject("Scripting.FileSystemObject")
If NOT fso.FolderExists(ExtractTo) Then
fso.CreateFolder(ExtractTo)
End If
'Extract the contents of the zip file.
set objShell = CreateObject("Shell.Application")
set FilesInZip=objShell.NameSpace(ZipFile).items
objShell.NameSpace(ExtractTo).CopyHere(FilesInZip)
Set fso = Nothing
Set objShell = Nothing
Thanks
i always get to the same point where i find solutions people posted but it's in vbscript what makes it harder/impossible to run in c#script
can you please convert this code to something i'll be able to run in c#script?
'Specifies the location of the zip file.
ZipFile="D:\Test\Test.zip"
'Specifies the folder the contents should be extracted to.
ExtractTo="D:\Test\"
'If the extraction location does not exist, create it.
Set fso = CreateObject("Scripting.FileSystemObject")
If NOT fso.FolderExists(ExtractTo) Then
fso.CreateFolder(ExtractTo)
End If
'Extract the contents of the zip file.
set objShell = CreateObject("Shell.Application")
set FilesInZip=objShell.NameSpace(ZipFile).items
objShell.NameSpace(ExtractTo).CopyHere(FilesInZip)
Set fso = Nothing
Set objShell = Nothing
Thanks
Related Content
- 3 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 9 hours ago
- 10 hours ago
- 16 hours ago