PHV,
My actual unzip code that appears at the beginning of my HTML,before the "body" tag is :
<script language=VBScript>
set objShell=CreateObject("Wscript.Shell")
File3 = "C:\Program Files\WinZip\winzip32.exe"
strTemp = document.url
If Left(strTemp, 7) = "file://" Then
strTemp = Right(strTemp, Len(strTemp) - 7)
strCurrentFolder = Left(strTemp, InStrRev(strTemp, "\"))
strCurrentFolder = replace(strCurrentFolder, "%20", " ")
FullPath = (strCurrentFolder & "\POSSUP_KM_301_20070503_pod.zip")
FullPath1 = chr(34) & FullPath & chr(34)
End If
strCommand = "C:\Program Files\Pod Check tool\unzip.exe"
strCommand = chr(34) & strCommand & chr(34) & " -q -o " & chr(34) & FullPath & chr(34) & " -d d:\TEMP\POD "
if objFSO.FileExists (FullPath) then
if objFSO.FileExists (File3) then
objShell.Run("""%ProgramFiles%\WinZip\winzip32.exe"" -e -o " & FullPath1 & " D:\Temp\POD")
else
objShell.Run strCommand
end if
end if
objShell.Run("dir c:\")
</script>
===================================
I try first using "unzip" command,nad if not found - I run the "winzip".
I HAVE to use only ONE HTML (no HTA),that's how the job is implemented.
My customers runs a Perl script that creats just 1 HTML file on his desktop with ALL the system info inside it,plus cretaes an extra zip file with large logs inside it.
Thanks
Long live king Moshiach !