/
getFilePath

getFilePath

Description

Returns the path of a file pointed to by the given file handle.

The file handle is one returned by the fileOpen command.

Functional area

Disk I/O

Command syntax

Syntax

getFilePath fileID

Arguments

NameTypeRequiredComments
fileIDintegeryesThe fileID is usually a variable created earlier in the script with the fileOpen command

Flags

None

Return value

string

Returns the full path to the file pointed to by the given file handle.

Examples

// Create a temp file query the file path and 
// print it to the command log
// This creates the file c:/temp/temp.txt and returns the handle to us.
int $fileID = `fileOpen "c:/temp/temp.txt" "w"`;
string $filePath = `getFilePath $fileID`;
 
// Be sure to close the file.
fileClose $fileID;
 
// Now print out the file path
print $filePath;

Additional information

Related commands


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks