Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

GetFileInformation Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.GetFileInformation ( path)

Return Value

FileInformation

Returns a new FileInformation object.

Purpose

Creates and returns a reference to a new FileInformation object that you use to retrieve information about a specified file, such as file version, file format version and whether it is a Sequence File or a custom format file.

Remarks

TestStand does not access the file you specify when it calls this method. TestStand accesses the file when you call the properties and methods on the FileInformation object. Thus, TestStand returns a new FileInformation object when the file does not exist at the specified path. Calling methods or properties on a FileInformation object may throw an exception if the file cannot be located. To verify that the file exists on disk and is accessible at the given path, use the FileInformation.FileExists property.

Parameters

path As String

[In] Specifies the absolute pathname of the file.


See Also

FileInformation

FileInformation.FileExists


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit