ssCore.FileSys.fileVer

Returns the version number of the specified file.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

path - Fully qualifed path to a file. This parameter supports monikers.


Output Parameters:

result - File version info.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.FileSys.fileVer( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.FileSys.fileVer( paramsObject );


Notes:

The file version information is returned in the "xxxx.yyyy.zzzz.bbbb" format where

The file version information is padded with zeros to permit direct string comparisions.

                

Examples:

var return_obj = ssCore.FileSys.fileVer({path:"startdir://helper.exe"});

ssDebug.trace(return_obj.result);