system

See also

system

system("ccc")

        invokes the command processor to execute command ccc.
Notes:
letters / are replaced by \ (windows compatible).
system("|ccc") allows not to replace / by \
like in system("|TASKKILL /ima porg.exe") killing the process name prog.exe.

Examples:

system("date"); gives the date.
system("del fic"); deletes file fic.
Remarques:
1) system("del uti/fic"); is automatically transformed into: system("del uti\fic");
2) system("!dir /B env\*.htm > tmp"); is not modified.
Others commands invoking system are relative to the stack.

Example

1) Create an executable string:
w="dir /B env/*.bmp > tmp"
2) Replace character / by \ (ascii code 92):
w[10]=ascii(92)
w becomes "dir /B env\*.bmp > tmp"
3) Execute without change / into \:
system("!",w)
The file tmp of the current folder contains the list of all files of extension bmp of folder env.

In anyflo to interactively check stack status, do for example in a function (0,"F5"):
text(string(NP system))poi(-300,-200)rectangle(0,0,0)frame(1,1,0)text(1,1,0);

See also:

debug system
directory system
edit system
ini system
ini system
name system
NP system
no system
read system
yes system