AutoPlay Media Studio 9

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("AutoPlay\\Docs\\chapter3.rtf", "", SW_MAXIMIZE);

Opens "AutoPlay\Docs\chapter3.rtf" in the user's default viewer for RTF files (probably Word), and maximizes the viewer program's window.

Example 2

File.Open("AutoPlay\\Docs\\readme.txt", "", SW_SHOWNORMAL);

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

Example 3

File.Open(_MyDocumentsDir .. "\\secretplans.pdf", _MyDocumentsDir);

Opens the "secretplans.pdf" file, located in the user's My Documents folder, using the user's default viewer for PDF files (probably Acrobat). Tells the default viewer to use the My Documents folder as the working folder.

See also: Related Actions


Learn More: Indigo Rose Software - AutoPlay Media Studio - Buy Now - Contact Us