Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | system.execute SEARCH    

  Functions
alert
log
system.battery.ACLineStatus
system.battery.LifePercent
system.beep
system.clipboard.clear
system.clipboard.get.format
system.clipboard.get.image
system.clipboard.get.text
system.clipboard.set.image
system.clipboard.set.text
system.createUniqueId
system.dialog
system.doEvents
system.execute
system.explore
system.getColors
system.getComputerId
system.getComputerName
system.getMemoryInfo
system.getUserName
system.ignoreCriticalErrors
system.language
system.lastError
system.logIsEnabled
system.message
system.mioEngine.countInstances
system.mioEngine.filename
system.mioEngine.version
system.openURL
system.os
system.platform
system.priority
system.process.create
system.process.free
system.process.getExitCode
system.userIsAdmin
system.winapi.errorMsg
system.winapi.lastError
system._hidden
system._showInTaskBar

  Events
event.error
event.exception
event.memoryFull
event.screen:resolution:change
event.system:desktop:changed
event.system:display:changed

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
system.execute

Language: MioScript
Product: MioFactory


Syntax

system.execute(filename, parameters, defaultPath, openMode)


Parameters

STRINGfilenameFile or program to execute.
STRINGparametersOptional.
Parameters to send to the program, if the filename is an executable.
STRINGdefaultPathOptional.
Default directory.
INTopenModeOptional.
How the applicaiton is to be diplayed.
0: Hide
1: Show normal
2: Show minimized
3: Show maximized
5: Show
6: Minimize
7: Show minimized, no activate
8: Show NA
9: Restore


Return value

32 or more if success.



Description

Execute a file or a program.

Execution is done using the Windows ShellExecute API function.




MioScript Sample Code

system.execute(path.rsc("mydocument.doc"))