Navigation: DocScript Reference > DocScript Functions >

File Analysis Functions

 

 

 

 

Function

Description

[File.FullName](filename)

Returns the full filename (path, filename and extension).

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.Length](filename)

Returns the number of bytes in the file.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.Name](filename)

Returns the name of the file without the path, but with the extension.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsPowerPoint](filename)

Returns True if the file is a Microsoft PowerPoint file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsWord](filename)

Returns True if the file is a Microsoft Word file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsExcel](filename)

Returns True if the file is a Microsoft Excel file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsPDF](filename)

Returns True if the file is a Adobe PDF file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsTIF](filename)

Returns True if the file is a TIFF image file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsTxt](filename)

Returns True if the file is a Text file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsPS](filename)

Returns True if the file is a PostScript or Encapsulated PostScript file. Does not use the file extension. Instead it analyzes the files.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.contents.

[File.IsXML](filename)

Returns True if the file is an XML file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsHTML](filename)

Returns True if the file is an HTML file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsJPG](filename)

Returns True if the file is a JPEG image file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsGIF](filename)

Returns True if the file is a GIF image file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.IsRTF](filename)

Returns True if the file is a Rich Text Format file. Does not use the file extension. Instead it analyzes the files contents.

 

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

[File.GetType](filename)

Returns the file type. The following file formats are supported:

Microsoft Office (PowerPoint, Word, Excel, Access, including Word2007, Word2007MacroEnabled, WordTemplate, Word2007Template, Word2007TemplateMacroEnabled, Excel2007, Excel2007MacroEnabled, Excel2007Template, ExcelTemplate, PowerPoint2007, PowerPointTemplate, PowerPoint2007Template)

OpenText's ApplicationXtender Foreign File Format

PDF, TIF, TXT, HTML, XML, JPG, GIF, RTF, PostScript,

Image Formats: Bitmap, PNG, ZIP, Outlook, Email,

Video Formats: WindowsMediaAudio, WindowsMediaVideo, Quicktime, MPEG4, MP4Audio, MP4Video, MPEG, MP3, WAV, AVI

Parameter(s)

filename - Typically this would be the filename of the current document {fdocname}, but can be any file on the system.

 

 

 

 

Copyright © 2024 Portford Solutions Group, Inc.