MSI Factory 2.3

File.Open

File.Open

This is the first topic This is the last topic  

File.Open

This is the first topic This is the last topic  

OverviewExamples

File.Open (

string Filename,

string WorkingFolder = "",

number WindowMode = SW_SHOWNORMAL )

Example 1

File.Open(_SourceDrive.."\\chapter3.rtf", "", SW_MAXIMIZE);

Opens "chapter3.rtf" located in the script's source drive in the user's default viewer for RTF files (probably Word), and maximizes the viewer program's window.

Example 2

File.Open(_TempFolder.."\\Documents\\readme.txt", "", SW_SHOWNORMAL);

Opens "Documents\readme.txt" (located in the system Temp folder) in the user's default viewer for TXT files (probably Notepad), and opens the viewer program's window normally (not minimized or maximized).

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us