You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.9 KiB
81 lines
1.9 KiB
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
|
|
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
|
|
<TITLE>Document Title</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
<SCRIPT LANGUAGE=javascript>
|
|
<!--
|
|
|
|
var g_cb;
|
|
|
|
function cb_onProgressFiles( cb, file, done, total )
|
|
{
|
|
Print( "onProgressFiles " + file + " " + done + "/" + total );
|
|
Print( "Change = " + cb.Status );
|
|
}
|
|
|
|
|
|
function cb_onProgressBytes( cb, done, total )
|
|
{
|
|
Print( "onProgressBytes " + done + "/" + total );
|
|
Print( "Change = " + cb.Status );
|
|
}
|
|
|
|
|
|
function cb_onComplete( cb, hr )
|
|
{
|
|
Print( "onComplete " + hr );
|
|
Print( "Change = " + cb.Status );
|
|
|
|
g_cb = null;
|
|
}
|
|
|
|
function Print( line )
|
|
{
|
|
out.innerHTML = out.innerHTML + line + "<BR>";
|
|
}
|
|
|
|
|
|
function button_exec()
|
|
{
|
|
// debugger;
|
|
|
|
g_cb = pchealth.CreateObject_Cabinet();
|
|
|
|
g_cb.AddFile( "c:\\winnt\\system32\\wshext.dll" );
|
|
g_cb.AddFile( "c:\\winnt\\system32\\wshirda.dll" );
|
|
g_cb.AddFile( "c:\\winnt\\system32\\wshisn.dll" );
|
|
g_cb.AddFile( "c:\\winnt\\system32\\wshnetbs.dll", "CustomName1" );
|
|
g_cb.AddFile( "c:\\winnt\\system32\\wsecedit.dll", "CustomName2" );
|
|
g_cb.AddFile( "c:\\winnt\\system32\\win32k.sys" , "Custom\\Name3" );
|
|
|
|
g_cb.onProgressFiles = cb_onProgressFiles;
|
|
g_cb.onProgressBytes = cb_onProgressBytes;
|
|
g_cb.onComplete = cb_onComplete;
|
|
|
|
g_cb.Compress( "c:\\temp\\cabinet.cab" );
|
|
}
|
|
|
|
function button_abort()
|
|
{
|
|
if(g_cb != null)
|
|
{
|
|
g_cb.Abort();
|
|
}
|
|
}
|
|
|
|
//-->
|
|
</SCRIPT>
|
|
|
|
<INPUT type="button" value="Start" onClick="button_exec();">
|
|
<INPUT type="button" value="Abort" onClick="button_abort();"><P>
|
|
|
|
<DIV ID=out></DIV>
|
|
|
|
|
|
</BODY>
|
|
</HTML>
|