SourceDirectory Property

Directory to be compressed into a self-extracting archive.

Object Oriented Interface

public function getSourceDirectory();
public function setSourceDirectory($value);

Procedural Interface

ipworkszip_zipsfx_get($res, 9 );
ipworkszip_zipsfx_set($res, 9, $value );

Default Value

''

Remarks

This property specifies the name of the directory containing the files to be compressed. This may be a local or absolute path. If the RecurseSubdirectories property is true, all the subdirectories under SourceDirectory will be recursed into, and those files will also be compressed.

Example (Creating a Self-Extracting Archive)


class.ArchiveFile = "c:\test.exe"
class.RecurseSubdirectories = true
class.SourceDirectory = "c:\foo\"
class.CaptionText = "Testing ZipSFX"
class.BannerText = "Press continue to decompress the archive."
class.CreateSFX()

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 PHP Edition - Version 20.0 [Build 8300]