VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



VBScript Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
Byte Array
RSS
Atom

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

Self-Extracting Exe Creation Showing All Options

VBScript showing (almost) all available options when creating a self-extracting executable.

set zip = CreateObject("ChilkatZip2.ChilkatZip2")
zip.UnlockComponent "anything for 30-day trial"

' Set this property to use an icon for the EXE that is created.
zip.ExeIconFile = "box.ico"

' Use this property to automatically unzip when the EXE is double-clicked.
' 1 = EXE has no interface, 0 (the default) = EXE includes default interface window
zip.ExeNoInterface = 1

' Causes the EXE to run a program (that was contained within the EXE)
' immediately after extracting.
zip.AutoRun = "Setup.exe"

' Causes the EXE to automatically unzip to a pre-set directory.
zip.ExeUnzipDir = "c:\temp\myApp\"

' Parameters can be passed to the AutoRun program.
zip.AutoRunParams = "-x -a -b"

' Causes the creation of an EXE that has no interface,
' and automatically selects a temporary directory for
' unzipping.
zip.AutoTemp = 1

' Initialize the Zip object and add some files.
zip.NewZip "zipFilenameNotUsedBecauseAnExeIsCreated.zip"

' Refer to http://www.chilkatsoft.com/refdoc/xChilkatZip2Ref.html
' for documentation on all properties and methods.
zip.AppendOneFileOrDir "Setup.exe", 0

zip.AppendOneFileOrDir "hamlet.xml", 0
zip.AppendData "something.txt", "This is data"
zip.AppendFiles "c:/temp/a/*", 1

zip.WriteExe "myPackage.exe"

 

Need a specific example? Send a request to support@chilkatsoft.com

© 2003-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser