Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | system.process.create 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.process.create

Language: MioScript
Product: MioFactory


Syntax

system.process.create(internalProcessId, filename, parameters, defaultPath, waitForExecution)


Parameters

INTinternalProcessIdID (0-32) of the process. The ID is set by you and is used to specify this process when calling other process related functions.
STRINGfilenameFile or program to execute.
STRINGparametersOptional.
Parameters to send to the program, separated by a space. The first argument is the exe name.
STRINGdefaultPathOptional.
Default directory.
BOOLwaitForExecutionOptional.
When set to true, the function waits to the process to complete then close the handles. If this parameter is set to false or not set, you must free the handles manually when the process is completed.


Return value

0 if failed to create the process.



Description

Create a new process. This function is used to run an external program.

Except if the parameter waitForExecution is set to true, the handles must be closed when the process is completed.