Use the File object to manipulate local files and directories during the installation process.
File Overview
The File object has methods for analyzing the file system and preparing it (as when new directories, program shortcuts, version comparisons, or deletions are required) for newly installed software packages.
The File object works in conjunction with the Install object.
Method Reference
dirCreate Creates a new directory. dirGetParent Returns an object representing the parent directory. dirRemove Removes a directory. dirRename Renames the specified directory. copy Makes a copy of the specified file. diskSpaceAvailable Returns the amount of disk space available in bytes. exists Returns a boolean value indicating whether the specified file exists or not. execute Queues a file for executing as part of the installation process. isFile Returns a boolean value indicating whether an object is a file. modDate Returns a number representing the last modified date of the given file. modDateChanged Specifies whether the last modification on a file is older than a specified date move Moves a file from one location to another. remove Removes a file. rename Renames a file in place. size Returns the size of the file in bytes. windowsShortcut Creates a windows shortcut for a file. macAlias Creates a macintosh alias for a file. windowsGetShortName Returns the windows shortname of the path. windowsRegisterServer Registers DLLs with the registry.
| Netscape Communications devedge.netscape.com |