. DirectXtras Home

DirectCommunication Xtra
DirectConnection Xtra
DirectControl Xtra
DirectEmail Xtra
DirectFTP Xtra
DirectImage Xtra
DirectInteraction Xtra
DirectOS Xtra
License Agreement
Licensing Fees
Order Form
DirectSMS Xtra
DirectSound Xtra
DirectTransition Xtra
DirectTransition3D Xtra Set I
DirectTransition3D Xtra Set II
DirectTransition3D Xtra Set III
DirectTTS Xtra
DirectXport Xtra


Special Discounted Bundles

The Gallery
How To Order
Order Form
Check for Upgrades

Sign in
Change Your Profile

Contact Us

Xtra Power for Director & Authorware

DirectOS Xtra
 Directing Windows and MacOS. The OS at your fingertips!

Authorware 4.x Compatible Authorware 5.x CompatibleAuthorware 6.x CompatibleAuthorware 7.x CompatibleDirector 5.x Compatible Director 6.x CompatibleDirector 7.x Compatible Director 8.x CompatibleDirector MX Compatible     MacOS 8.x and 9.x CompatibleMacOS X CompatibleWindows Compatible   

dosOpenFile(string FileName, string State)

Opens the specified file, folder or URL with its associated application.

Parameters :

FileName : A string specifying the pathname of the file, folder or URL to open. On Windows, MS-DOS or Windows names are valid. For example on Windows, "C:\MyFile.txt". For example on MacOS, "My Mac:My Text File". On MacOS, if FileName is a URL, it must start with either "http://", "https://", "ftp://" or "file://". On MacOS, Internet Config must be installed in order to open a URL.
State : A string specifying the state to start the application in. This parameter is case insensitive and is ignored on MacOS.
Possible Values :
"Normal" : Starts the associated application in a normal state (visible, not maximized, minimized or hidden). 
"Maximized" : Starts the associated application in a maximized state.
"Minimized" : Starts the associated application in a minimized state. 
"Hidden" : Starts the associated application in a hidden state with no visible graphical user interface components.

Return Value : An integer indicating whether the method was successful or not. If 1 is returned, the method was successful. If 0 is returned, the method was not successful in which case dosGetLastError() should be called to determine the cause of the error. 

Possible Returned Error Codes via dosGetLastError() :
10000 : Out of memory. 
10002 : Invalid value for parameter 2. 
10016 : File not found. 
10023 : Associated application not found. 

DirectXtras Inc.
P.O Box 2645, Menlo Park, CA, 94026, U.S.A
Voice: +1-415-5058249, Fax: +1-801-8585841
Toll Free: 1-800-4453093
E-mail General Information: info@directxtras.com
E-mail Technical Support: support@directxtras.com

Copyright 1996-2004 DirectXtras Inc. All Rights Reserved.
WebMaster: tamar@directxtras.com
Last Updated: 2/18/2002 3:15:59 PM.