Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

curScript

Method:

LaunchProcess

static boolean LaunchProcess(string executablePath, string commandLineString, boolean waitEnd, unsigned timeout_ms)

Launch a process from the current script

Description:

This method can be used to execute a process on the same computer where Biferno is running.

Parameters:
executablePath

a string containing the path of the executable file. This can be, for example, a ".exe" on Windows or an executable command on Unix. The path must be in Biferno file format, NOT native format

commandLineString

parameter arguments to pass to the executabel (as if written on a command line). If commandLineString contains path, they must be expressed in native format

waitEnd

if true, the call blocks until the called process is terminated, or until a timeout (timeout_ms) is reached. If false the call is not blocked and timeout is not used

timeout_ms

if the call wait for the process to terminate, a timeout (in milliseconds) can be set to prevent infinite blocks.

Notes:

Example: this script executes WZZIP.EXE (in a Windows OS) to zip a folder

zipExePath = "file://D/Program Files/WinZip/WZZIP.EXE"
zipCommand = " -rP myFolder.zip myFolder\\*.*"
curScript.LaunchProcess(zipExePath, zipCommand, true, 1000 * 600);

Implementation:
C
 

Return to the curScript class